#CDC04B#CDC04B

#CDC04B is a light, vivid yellow. Relative luminance 0.512; OKLCH L 79.7% C 0.137 H 103.0°. Best body text is #000000 at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#CDC04B
RGBrgb(205, 192, 75)
HSLhsl(54, 57%, 55%)
HSVhsv(54, 63%, 80%)
CMYKcmyk(0%, 6.3%, 63.4%, 19.6%)
CIE-LABlab(76.79, -9.41, 58.68)
CIE-LCHlch(76.79, 59.43, 99.11°)
OKLaboklab(79.67% -0.0307 0.1334)
OKLCHoklch(79.67% 0.137 103)
XYZxyz(45.2982, 51.1882, 14.1495)
Luminance0.5119 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC04B #4B58CD
analogous
#CD7F4B #CDC04B #99CD4B
triadic
#CDC04B #4BCDC0 #C04BCD
tetradic
#CDC04B #4BCD7F #4B58CD #CD4B99
square
#CDC04B #4BCD7F #4B58CD #CD4B99
split-complementary
#CDC04B #4B99CD #7F4BCD
monochromatic
#7B7222 #AB9F30 #CDC04B #DAD17B #E8E2AB

Accessibility & contrast

On white

1.87
#CDC04B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.24
#CDC04B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC04B
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC04B#FFFFFF#000000##000000
##CDC04B1.001.8711.2411.24
#FFFFFF1.871.0021.0021.00
#00000011.2421.001.001.00
##00000011.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0BA3D
Deuteranopia (green-blind)
#D4C052
Tritanopia (blue-blind)
#DCB3A7
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #cdc04b;
/* rgb */ color: rgb(205, 192, 75);
/* oklch */ color: oklch(79.7% 0.137 103.0);
Tailwind
colors: {
  custom: {
    50: '#dfd283',
    500: '#cdc04b',
    950: '#000000',
  },
}
SCSS
$custom: #cdc04b;
$custom-light: #dfd283;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc04b",
  "rgb": {
    "r": 205,
    "g": 192,
    "b": 75
  },
  "hsl": {
    "h": 54,
    "s": 56.522,
    "l": 54.902
  },
  "oklch": {
    "l": 0.79671,
    "c": 0.13687,
    "h": 103
  },
  "luminance": 0.51186
}

Semantic roles & 50–950 ramp

primary
#CDC04B
secondary
#394083
accent
#57E048
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CDC04B

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

Preview Lab → · Contrast checker → · Palette generator →

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