#CDC254#CDC254

#CDC254 is a light, vivid yellow. Relative luminance 0.522; OKLCH L 80.2% C 0.131 H 103.6°. Best body text is #000000 at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#CDC254
RGBrgb(205, 194, 84)
HSLhsl(55, 55%, 57%)
HSVhsv(55, 59%, 80%)
CMYKcmyk(0%, 5.4%, 59%, 19.6%)
CIE-LABlab(77.40, -9.84, 55.42)
CIE-LCHlch(77.40, 56.29, 100.06°)
OKLaboklab(80.18% -0.0309 0.1277)
OKLCHoklch(80.18% 0.131 103.6)
XYZxyz(46.0705, 52.2045, 16.0355)
Luminance0.5220 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC254 #545FCD
analogous
#CD8654 #CDC254 #9CCD54
triadic
#CDC254 #54CDC2 #C254CD
tetradic
#CDC254 #54CD86 #545FCD #CD549C
square
#CDC254 #54CD86 #545FCD #CD549C
split-complementary
#CDC254 #549CCD #8654CD
monochromatic
#817926 #B0A534 #CDC254 #DBD383 #E9E4B3

Accessibility & contrast

On white

1.84
#CDC254 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.44
#CDC254 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC254
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC254#FFFFFF#000000##000000
##CDC2541.001.8411.4411.44
#FFFFFF1.841.0021.0021.00
#00000011.4421.001.001.00
##00000011.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BC48
Deuteranopia (green-blind)
#D5C25A
Tritanopia (blue-blind)
#DBB6AA
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #cdc254;
/* rgb */ color: rgb(205, 194, 84);
/* oklch */ color: oklch(80.2% 0.131 103.6);
Tailwind
colors: {
  custom: {
    50: '#dfd488',
    500: '#cdc254',
    950: '#000000',
  },
}
SCSS
$custom: #cdc254;
$custom-light: #dfd488;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc254",
  "rgb": {
    "r": 205,
    "g": 194,
    "b": 84
  },
  "hsl": {
    "h": 54.545,
    "s": 54.751,
    "l": 56.667
  },
  "oklch": {
    "l": 0.80181,
    "c": 0.13138,
    "h": 103.6
  },
  "luminance": 0.52203
}

Semantic roles & 50–950 ramp

primary
#CDC254
secondary
#3D4488
accent
#57DE4A
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16140C
muted
#84837F

Preview Lab

Preview with #CDC254

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

Preview Lab → · Contrast checker → · Palette generator →

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