#CDB942#CDB942

#CDB942 is a light, vivid yellow. Relative luminance 0.481; OKLCH L 78.1% C 0.138 H 99.6°. Best body text is #000000 at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#CDB942
RGBrgb(205, 185, 66)
HSLhsl(51, 58%, 53%)
HSVhsv(51, 68%, 80%)
CMYKcmyk(0%, 9.8%, 67.8%, 19.6%)
CIE-LABlab(74.87, -6.33, 60.41)
CIE-LCHlch(74.87, 60.74, 95.98°)
OKLaboklab(78.12% -0.023 0.1356)
OKLCHoklch(78.12% 0.138 99.6)
XYZxyz(43.5111, 48.0724, 12.1402)
Luminance0.4807 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDB942 #4256CD
analogous
#CD7342 #CDB942 #9BCD42
triadic
#CDB942 #42CDB9 #B942CD
tetradic
#CDB942 #42CD73 #4256CD #CD429B
square
#CDB942 #42CD73 #4256CD #CD429B
split-complementary
#CDB942 #429BCD #7342CD
monochromatic
#76691F #A6942C #CDB942 #DACB72 #E7DDA3

Accessibility & contrast

On white

1.98
#CDB942 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.61
#CDB942 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDB942
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDB942#FFFFFF#000000##000000
##CDB9421.001.9810.6110.61
#FFFFFF1.981.0021.0021.00
#00000010.6121.001.001.00
##00000010.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#CAB432
Deuteranopia (green-blind)
#D0BB49
Tritanopia (blue-blind)
#DDACA1
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #cdb942;
/* rgb */ color: rgb(205, 185, 66);
/* oklch */ color: oklch(78.1% 0.138 99.6);
Tailwind
colors: {
  custom: {
    50: '#e0cd7d',
    500: '#cdb942',
    950: '#000000',
  },
}
SCSS
$custom: #cdb942;
$custom-light: #e0cd7d;
$custom-dark: #000000;
JSON
{
  "hex": "#cdb942",
  "rgb": {
    "r": 205,
    "g": 185,
    "b": 66
  },
  "hsl": {
    "h": 51.367,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.78122,
    "c": 0.13754,
    "h": 99.6
  },
  "luminance": 0.4807
}

Semantic roles & 50–950 ramp

primary
#CDB942
secondary
#97A0D3
accent
#5DE146
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CDB942

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

Preview Lab → · Contrast checker → · Palette generator →

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