#CDB040#CDB040

#CDB040 is a light, vivid yellow. Relative luminance 0.444; OKLCH L 76.2% C 0.132 H 94.4°. Best body text is #000000 at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#CDB040
RGBrgb(205, 176, 64)
HSLhsl(48, 59%, 53%)
HSVhsv(48, 69%, 80%)
CMYKcmyk(0%, 14.1%, 68.8%, 19.6%)
CIE-LABlab(72.50, -1.74, 58.80)
CIE-LCHlch(72.50, 58.82, 91.69°)
OKLaboklab(76.24% -0.0101 0.1319)
OKLCHoklch(76.24% 0.132 94.4)
XYZxyz(41.6297, 44.4022, 11.2272)
Luminance0.4440 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDB040 #405DCD
analogous
#CD6A40 #CDB040 #A3CD40
triadic
#CDB040 #40CDB0 #B040CD
tetradic
#CDB040 #40CD6A #405DCD #CD40A3
square
#CDB040 #40CD6A #405DCD #CD40A3
split-complementary
#CDB040 #40A3CD #6A40CD
monochromatic
#74631E #A58C2B #CDB040 #DAC471 #E6D8A1

Accessibility & contrast

On white

2.13
#CDB040 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.88
#CDB040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDB040
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDB040#FFFFFF#000000##000000
##CDB0401.002.139.889.88
#FFFFFF2.131.0021.0021.00
#0000009.8821.001.001.00
##0000009.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AD31
Deuteranopia (green-blind)
#C9B646
Tritanopia (blue-blind)
#DDA399
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #cdb040;
/* rgb */ color: rgb(205, 176, 64);
/* oklch */ color: oklch(76.2% 0.132 94.4);
Tailwind
colors: {
  custom: {
    50: '#e0c77b',
    500: '#cdb040',
    950: '#000000',
  },
}
SCSS
$custom: #cdb040;
$custom-light: #e0c77b;
$custom-dark: #000000;
JSON
{
  "hex": "#cdb040",
  "rgb": {
    "r": 205,
    "g": 176,
    "b": 64
  },
  "hsl": {
    "h": 47.66,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.76238,
    "c": 0.13223,
    "h": 94.4
  },
  "luminance": 0.444
}

Semantic roles & 50–950 ramp

primary
#CDB040
secondary
#96A2D3
accent
#66E246
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CDB040

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#CDB040 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva