#CDC55F#CDC55F

#CDC55F is a light, vivid yellow. Relative luminance 0.537; OKLCH L 80.9% C 0.124 H 104.8°. Best body text is #000000 at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#CDC55F
RGBrgb(205, 197, 95)
HSLhsl(56, 52%, 59%)
HSVhsv(56, 54%, 80%)
CMYKcmyk(0%, 3.9%, 53.7%, 19.6%)
CIE-LABlab(78.31, -10.53, 51.41)
CIE-LCHlch(78.31, 52.48, 101.58°)
OKLaboklab(80.94% -0.0317 0.1204)
OKLCHoklch(80.94% 0.124 104.8)
XYZxyz(47.2100, 53.7394, 18.7101)
Luminance0.5374 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC55F #5F67CD
analogous
#CD8E5F #CDC55F #9ECD5F
triadic
#CDC55F #5FCDC5 #C55FCD
tetradic
#CDC55F #5FCD8E #5F67CD #CD5F9E
square
#CDC55F #5FCD8E #5F67CD #CD5F9E
split-complementary
#CDC55F #5F9ECD #8E5FCD
monochromatic
#87812A #B6AD39 #CDC55F #DCD68E #EAE7BC

Accessibility & contrast

On white

1.79
#CDC55F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.75
#CDC55F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC55F
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC55F#FFFFFF#000000##000000
##CDC55F1.001.7911.7511.75
#FFFFFF1.791.0021.0021.00
#00000011.7521.001.001.00
##00000011.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4BF55
Deuteranopia (green-blind)
#D7C464
Tritanopia (blue-blind)
#DABAAE
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #cdc55f;
/* rgb */ color: rgb(205, 197, 95);
/* oklch */ color: oklch(80.9% 0.124 104.8);
Tailwind
colors: {
  custom: {
    50: '#ded68f',
    500: '#cdc55f',
    950: '#000000',
  },
}
SCSS
$custom: #cdc55f;
$custom-light: #ded68f;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc55f",
  "rgb": {
    "r": 205,
    "g": 197,
    "b": 95
  },
  "hsl": {
    "h": 55.636,
    "s": 52.381,
    "l": 58.824
  },
  "oklch": {
    "l": 0.80937,
    "c": 0.12445,
    "h": 104.8
  },
  "luminance": 0.53738
}

Semantic roles & 50–950 ramp

primary
#CDC55F
secondary
#42478E
accent
#56DC4C
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140D
muted
#84837F

Preview Lab

Preview with #CDC55F

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

Preview Lab → · Contrast checker → · Palette generator →

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