#CDC040#CDC040

#CDC040 is a light, vivid yellow. Relative luminance 0.510; OKLCH L 79.6% C 0.145 H 103.5°. Best body text is #000000 at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#CDC040
RGBrgb(205, 192, 64)
HSLhsl(54, 59%, 53%)
HSVhsv(54, 69%, 80%)
CMYKcmyk(0%, 6.3%, 68.8%, 19.6%)
CIE-LABlab(76.71, -10.05, 63.07)
CIE-LCHlch(76.71, 63.86, 99.05°)
OKLaboklab(79.58% -0.0337 0.1409)
OKLCHoklch(79.58% 0.145 103.5)
XYZxyz(44.9538, 51.0504, 12.3353)
Luminance0.5105 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC040 #404DCD
analogous
#CD7940 #CDC040 #93CD40
triadic
#CDC040 #40CDC0 #C040CD
tetradic
#CDC040 #40CD79 #404DCD #CD4093
square
#CDC040 #40CD79 #404DCD #CD4093
split-complementary
#CDC040 #4093CD #7940CD
monochromatic
#746C1E #A5992B #CDC040 #DAD071 #E6E0A1

Accessibility & contrast

On white

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

On black

11.21
#CDC040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC040
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC040#FFFFFF#000000##000000
##CDC0401.001.8711.2111.21
#FFFFFF1.871.0021.0021.00
#00000011.2121.001.001.00
##00000011.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BA2D
Deuteranopia (green-blind)
#D5C048
Tritanopia (blue-blind)
#DCB3A6
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #cdc040;
/* rgb */ color: rgb(205, 192, 64);
/* oklch */ color: oklch(79.6% 0.145 103.5);
Tailwind
colors: {
  custom: {
    50: '#e0d27c',
    500: '#cdc040',
    950: '#000000',
  },
}
SCSS
$custom: #cdc040;
$custom-light: #e0d27c;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc040",
  "rgb": {
    "r": 205,
    "g": 192,
    "b": 64
  },
  "hsl": {
    "h": 54.468,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.79578,
    "c": 0.14487,
    "h": 103.5
  },
  "luminance": 0.51049
}

Semantic roles & 50–950 ramp

primary
#CDC040
secondary
#343B7D
accent
#54E246
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CDC040

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

Preview Lab → · Contrast checker → · Palette generator →

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