RAL Classic color

RAL 1004 Golden yellow #CDA434

RAL 1004 Golden yellow is shown here as #CDA434, a widely published sRGB approximation of the printed swatch. It is a light soft amber in the yellow family. In OKLCH it sits at lightness 0.737, chroma 0.133 and hue 87.8°. The nearest CSS named color is goldenrod (#DAA520), ΔE2000 3.4 away.

Relative luminance
0.3978
OKLCH L · C · h
0.737 · 0.133 · 87.8
Best text
Black 8.95:1
Hue family
Yellow

#CDA434 color codes

HEX
#CDA434
RGB
rgb(205, 164, 52)
HSL
hsl(44, 60%, 50%)
OKLCH
oklch(0.737 0.133 87.8)
OKLab
oklab(0.737 0.005 0.133)
CIELAB (D65)
L* 69.31, a* 4.05, b* 60.40
XYZ (D65)
X 39.07, Y 39.78, Z 8.87
CMYK (naive)
cmyk(0%, 20%, 75%, 20%)

CIELAB and XYZ use the D65 white point; CSS lab() uses D50, so paste the OKLCH or HEX value into stylesheets. CMYK here is a plain formula with no press profile.

RAL and RAL Classic are trademarks of RAL gGmbH, which this site is not affiliated with. The sRGB value is an approximation of the printed swatch; check a physical RAL color card before you specify a paint.

Legibility

Contrast: is #CDA434 accessible?

Black text on it reaches 8.95:1, passing AAA. White text fails at 2.34:1.

WCAG 2 gives the same ratio whichever color is the text; APCA does not, so its Lc changes sign and size with polarity.

Open the Contrast System
  • Black text on it

    8.95:1

    • AA passes
    • AA large passes
    • AAA passes
    • APCA Lc +57
  • White text on it

    2.34:1

    • AA fails
    • AA large fails
    • AAA fails
    • APCA Lc −50
  • As text on black

    8.95:1

    • AA passes
    • AA large passes
    • AAA passes
    • APCA Lc −55
  • As text on white

    2.34:1

    • AA fails
    • AA large fails
    • AAA fails
    • APCA Lc +46

Nearest versions that pass 4.5:1

  • For text on white

    #937100 4.56:1

    Darkening its OKLCH lightness from 0.74 to 0.57 reaches 4.56:1 on white, keeping the hue.

  • For text on black

    #CDA434 8.95:1

    It already reaches 8.95:1 on black, so no change is needed.

Checking another pair? Use the Contrast Checker.

Studio

Adjust #CDA434 live

Move lightness, chroma and hue in OKLCH, or drag on the map. The map is every lightness and chroma at the current hue: sRGB inside the solid area, Display P3 out to the dashed line.

The studio needs JavaScript.

Scale

Shades and tints of #CDA434

Eleven OKLCH lightness steps at this hue, each with its contrast against white and black. #CDA434 sits at step 400.

  1. 50#FFF4DB
    White
    1.09
    Black
    19.21
  2. 100#FFE9B6
    White
    1.19
    Black
    17.58
  3. 200#F8D379
    White
    1.43
    Black
    14.58
  4. 300#DFB956
    White
    1.87
    Black
    11.21
  5. 400This color#CDA434
    White
    2.34
    Black
    8.95
  6. 500#A68000
    White
    3.67
    Black
    5.70
  7. 600#8A6A00
    White
    5.06
    Black
    4.14
  8. 700#6E5400
    White
    7.16
    Black
    2.93
  9. 800#503D00
    White
    10.45
    Black
    2.00
  10. 900#352700
    White
    14.56
    Black
    1.44
  11. 950#1E1500
    White
    18.06
    Black
    1.16

Under each step, white and black text on it; a bold figure passes 4.5:1.

Gamut

How vivid #CDA434 can get

At its lightness and hue, sRGB reaches OKLCH chroma 0.151; #CDA434 uses 88% of it. Display P3, which many recent phones and laptops show, reaches 0.174 there: 15% more.

0.00.20.40.60.80.20.40.60.8 460480500520540560580600620
  • sRGB
  • Display P3
  • Rec. 2020
  • Dominant wavelength
OKLCH chroma
0.133
sRGB edge
0.151
Display P3 edge
0.174
Rec. 2020 edge
0.178
Dominant wavelength
578 nm
Excitation purity
72%
Chromaticity
x 0.4454, y 0.4535
  • This color#CDA434
  • Most vivid in sRGB#D2A300
  • Most vivid in Display P3oklch(0.737 0.174 87.8)

On a screen without Display P3 the last tile shows the sRGB edge instead.

Use the wider color where screens show it
.accent {
  color: #cda434;
}
@media (color-gamut: p3) {
  .accent { color: color(display-p3 0.8123 0.6382 0); }
}

Mixing

Mixing #CDA434

Each row is the same mix worked out in a different space, with the halfway color at its end. sRGB, which older CSS gradients use, can sag gray or dark in the middle; OKLab keeps the lightness steps even; OKLCH holds chroma and hue as it goes.

White #FFFFFF

  • sRGB50%#E6D29A
  • OKLab50%#E6D2A2
  • OKLCH50%#E6D2A2

Black #000000

  • sRGB50%#67521A
  • OKLab50%#4E3D0E
  • OKLCH50%#4E3D0E

Its complement #85A6FE

  • sRGB50%#A9A599
  • OKLab50%#AAAAAA
  • OKLCH50%#16C5A9
In CSS
/* A gradient and a mix, worked out in OKLCH */
background: linear-gradient(in oklch, #cda434, white);
color: color-mix(in oklch, #cda434 50%, white);

In use

#CDA434 in an interface

A button, a link, a heading, a focused field, an icon and a chart line in this color, on a light page and a dark one. Each check is a WCAG 2 contrast minimum: 1.4.3 for text, 1.4.11 for the rest.

Light page

  • Button labelText, 4.5:18.95:1 Passes
  • Link and body-size textText, 4.5:12.34:1 Fails
  • Large headingLarge text, 3:12.34:1 Fails
  • Icons, borders and focus ringsNon-text, 3:12.34:1 Fails

For text on this page, the nearest shade that passes is #937100 4.56:1

Dark page

  • Button labelText, 4.5:18.95:1 Passes
  • Link and body-size textText, 4.5:17.98:1 Passes
  • Large headingLarge text, 3:17.98:1 Passes
  • Icons, borders and focus ringsNon-text, 3:17.98:1 Passes

Color vision

How #CDA434 looks with color blindness

Tritanopia changes it most, ΔE2000 30.4; protanopia changes it least, 6.3.

Simulated with Machado et al. (2009) at full severity, in linear light.

Simulate a whole page What each type sees
  • Protanopia

    No working red (long-wavelength) cones

    #B8A322 ΔE2000 6.3

    Noticeable

    Reads as light soft amber

  • Deuteranopia

    No working green (medium-wavelength) cones

    #C1AE3A ΔE2000 6.7

    Noticeable

    Reads as light soft amber

  • Tritanopia

    No working blue (short-wavelength) cones

    #DE958E ΔE2000 30.4

    Distinct

    Reads as light muted red

  • Achromatopsia

    No cone color vision; lightness only

    #A9A9A9 ΔE2000 25.6

    Distinct

    Reads as light gray

Pairing check

Checked against its complement, #85A6FE. Their lightness contrast is only 1.00:1, so where hue collapses, add a label, icon or pattern.

VisionThe pairΔE2000Verdict
Normal vision#CDA434 · #85A6FE53.5Stays distinct
Protanopia#B8A322 · #85AEFF54.6Stays distinct
Deuteranopia#C1AE3A · #78A4FC55.5Stays distinct
Tritanopia#DE958E · #54B9C652.1Stays distinct
Achromatopsia#A9A9A9 · #A8A8A80.3Easily confused

Harmony

Color harmonies for #CDA434

Its complement is #85A6FE, a light soft blue, on the cool side of the wheel.

Hue rotations in OKLCH, mapped into sRGB by trimming chroma so hue and lightness stay put.

Open the Harmony Studio
  • Base#CDA434
  • Complement#85A6FE

Complementary

Open in Harmony Studio
  • −30°#E8934D
  • Base#CDA434
  • +30°#A3B54A
  • Base#CDA434
  • +120°#00BFD3
  • +240°#D78AD4
  • Base#CDA434
  • +150°#48B5F3
  • +210°#B497F3

Split-complementary

Open in Harmony Studio

Code

Design tokens

Ready-to-paste tokens in six formats. Rename them to fit your system.

CSS custom property

:root {
  --color-ral-1004: #cda434;
}

Tailwind config

// tailwind.config.js
module.exports = {
  theme: {
    extend: {
      colors: {
        'ral-1004': '#cda434',
      },
    },
  },
};

Tailwind v4 theme

/* app.css — Tailwind CSS v4 */
@import "tailwindcss";

@theme {
  --color-ral-1004: oklch(0.737 0.133 87.8);
}

Design token (W3C DTCG)

{
  "color": {
    "ral-1004": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [0.8039, 0.6431, 0.2039],
        "hex": "#cda434"
      },
      "$description": "RAL 1004 Golden yellow (approximate sRGB)"
    }
  }
}

SwiftUI color

import SwiftUI

enum Palette {
    static let ral1004 = Color(.sRGB, red: 0.804, green: 0.643, blue: 0.204, opacity: 1)
}

Jetpack Compose color

import androidx.compose.ui.graphics.Color

object Palette {
    val Ral1004 = Color(0xFFCDA434)
}

Matches

The nearest match in each system

The closest CSS name, Tailwind shade, RAL Classic paint and Crayola crayon by ΔE2000; under 2 is hard to tell apart side by side. RAL and Crayola values approximate physical colors.

Tools

Open #CDA434 in the tools

Each opens over this page. More colors live in the Color Library, and every color page is listed on the hub.