#CDC858#CDC858

#CDC858 is a light, vivid yellow. Relative luminance 0.550; OKLCH L 81.5% C 0.134 H 106.6°. Best body text is #000000 at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#CDC858
RGBrgb(205, 200, 88)
HSLhsl(57, 54%, 57%)
HSVhsv(57, 57%, 80%)
CMYKcmyk(0%, 2.4%, 57.1%, 19.6%)
CIE-LABlab(79.04, -12.60, 55.45)
CIE-LCHlch(79.04, 56.87, 102.80°)
OKLaboklab(81.49% -0.0383 0.1283)
OKLCHoklch(81.49% 0.134 106.6)
XYZxyz(47.5940, 54.9937, 17.3384)
Luminance0.5499 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC858 #585DCD
analogous
#CD8E58 #CDC858 #97CD58
triadic
#CDC858 #58CDC8 #C858CD
tetradic
#CDC858 #58CD8E #585DCD #CD5897
square
#CDC858 #58CD8E #585DCD #CD5897
split-complementary
#CDC858 #5897CD #8E58CD
monochromatic
#837F27 #B2AD35 #CDC858 #DBD887 #E9E7B6

Accessibility & contrast

On white

1.75
#CDC858 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.00
#CDC858 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC858
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC858#FFFFFF#000000##000000
##CDC8581.001.7512.0012.00
#FFFFFF1.751.0021.0021.00
#00000012.0021.001.001.00
##00000012.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C14C
Deuteranopia (green-blind)
#DAC65E
Tritanopia (blue-blind)
#DABCB0
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #cdc858;
/* rgb */ color: rgb(205, 200, 88);
/* oklch */ color: oklch(81.5% 0.134 106.6);
Tailwind
colors: {
  custom: {
    50: '#dfd88b',
    500: '#cdc858',
    950: '#000000',
  },
}
SCSS
$custom: #cdc858;
$custom-light: #dfd88b;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc858",
  "rgb": {
    "r": 205,
    "g": 200,
    "b": 88
  },
  "hsl": {
    "h": 57.436,
    "s": 53.917,
    "l": 57.451
  },
  "oklch": {
    "l": 0.81494,
    "c": 0.13386,
    "h": 106.6
  },
  "luminance": 0.54992
}

Semantic roles & 50–950 ramp

primary
#CDC858
secondary
#3F428B
accent
#51DD4B
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140C
muted
#84837F

Preview Lab

Preview with #CDC858

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

Preview Lab → · Contrast checker → · Palette generator →

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