#CDC258#CDC258

#CDC258 is a light, vivid yellow. Relative luminance 0.523; OKLCH L 80.2% C 0.128 H 103.4°. Best body text is #000000 at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#CDC258
RGBrgb(205, 194, 88)
HSLhsl(54, 54%, 57%)
HSVhsv(54, 57%, 80%)
CMYKcmyk(0%, 5.4%, 57.1%, 19.6%)
CIE-LABlab(77.44, -9.54, 53.66)
CIE-LCHlch(77.44, 54.50, 100.09°)
OKLaboklab(80.22% -0.0296 0.1244)
OKLCHoklch(80.22% 0.128 103.4)
XYZxyz(46.2316, 52.2689, 16.8843)
Luminance0.5227 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC258 #5863CD
analogous
#CD8858 #CDC258 #9DCD58
triadic
#CDC258 #58CDC2 #C258CD
tetradic
#CDC258 #58CD88 #5863CD #CD589D
square
#CDC258 #58CD88 #5863CD #CD589D
split-complementary
#CDC258 #589DCD #8858CD
monochromatic
#837B27 #B2A735 #CDC258 #DBD387 #E9E4B6

Accessibility & contrast

On white

1.83
#CDC258 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.45
#CDC258 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC258
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC258#FFFFFF#000000##000000
##CDC2581.001.8311.4511.45
#FFFFFF1.831.0021.0021.00
#00000011.4521.001.001.00
##00000011.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BC4D
Deuteranopia (green-blind)
#D5C25D
Tritanopia (blue-blind)
#DBB6AB
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #cdc258;
/* rgb */ color: rgb(205, 194, 88);
/* oklch */ color: oklch(80.2% 0.128 103.4);
Tailwind
colors: {
  custom: {
    50: '#dfd48b',
    500: '#cdc258',
    950: '#000000',
  },
}
SCSS
$custom: #cdc258;
$custom-light: #dfd48b;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc258",
  "rgb": {
    "r": 205,
    "g": 194,
    "b": 88
  },
  "hsl": {
    "h": 54.359,
    "s": 53.917,
    "l": 57.451
  },
  "oklch": {
    "l": 0.80224,
    "c": 0.12789,
    "h": 103.4
  },
  "luminance": 0.52267
}

Semantic roles & 50–950 ramp

primary
#CDC258
secondary
#3F468B
accent
#58DD4B
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140C
muted
#84837F

Preview Lab

Preview with #CDC258

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

Preview Lab → · Contrast checker → · Palette generator →

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