#CDC54E#CDC54E

#CDC54E is a light, vivid yellow. Relative luminance 0.535; OKLCH L 80.8% C 0.139 H 105.5°. Best body text is #000000 at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#CDC54E
RGBrgb(205, 197, 78)
HSLhsl(56, 56%, 55%)
HSVhsv(56, 62%, 80%)
CMYKcmyk(0%, 3.9%, 62%, 19.6%)
CIE-LABlab(78.15, -11.77, 58.86)
CIE-LCHlch(78.15, 60.02, 101.31°)
OKLaboklab(80.76% -0.0371 0.1342)
OKLCHoklch(80.76% 0.139 105.5)
XYZxyz(46.5199, 53.4633, 15.0752)
Luminance0.5346 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC54E #4E56CD
analogous
#CD854E #CDC54E #96CD4E
triadic
#CDC54E #4ECDC5 #C54ECD
tetradic
#CDC54E #4ECD85 #4E56CD #CD4E96
square
#CDC54E #4ECD85 #4E56CD #CD4E96
split-complementary
#CDC54E #4E96CD #854ECD
monochromatic
#7D7823 #ADA531 #CDC54E #DAD57E #E8E4AD

Accessibility & contrast

On white

1.80
#CDC54E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.69
#CDC54E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC54E
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC54E#FFFFFF#000000##000000
##CDC54E1.001.8011.6911.69
#FFFFFF1.801.0021.0021.00
#00000011.6921.001.001.00
##00000011.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BE40
Deuteranopia (green-blind)
#D8C455
Tritanopia (blue-blind)
#DBB9AC
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #cdc54e;
/* rgb */ color: rgb(205, 197, 78);
/* oklch */ color: oklch(80.8% 0.139 105.5);
Tailwind
colors: {
  custom: {
    50: '#dfd685',
    500: '#cdc54e',
    950: '#000000',
  },
}
SCSS
$custom: #cdc54e;
$custom-light: #dfd685;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc54e",
  "rgb": {
    "r": 205,
    "g": 197,
    "b": 78
  },
  "hsl": {
    "h": 56.22,
    "s": 55.947,
    "l": 55.49
  },
  "oklch": {
    "l": 0.80756,
    "c": 0.13921,
    "h": 105.5
  },
  "luminance": 0.53462
}

Semantic roles & 50–950 ramp

primary
#CDC54E
secondary
#3A3F85
accent
#52DF49
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CDC54E

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

Preview Lab → · Contrast checker → · Palette generator →

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