#CDC158#CDC158

#CDC158 is a light, vivid yellow. Relative luminance 0.518; OKLCH L 80.0% C 0.127 H 102.8°. Best body text is #000000 at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#CDC158
RGBrgb(205, 193, 88)
HSLhsl(54, 54%, 57%)
HSVhsv(54, 57%, 80%)
CMYKcmyk(0%, 5.9%, 57.1%, 19.6%)
CIE-LABlab(77.18, -9.03, 53.36)
CIE-LCHlch(77.18, 54.12, 99.61°)
OKLaboklab(80.01% -0.0282 0.1238)
OKLCHoklch(80.01% 0.127 102.8)
XYZxyz(46.0098, 51.8253, 16.8103)
Luminance0.5182 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC158 #5864CD
analogous
#CD8658 #CDC158 #9FCD58
triadic
#CDC158 #58CDC1 #C158CD
tetradic
#CDC158 #58CD86 #5864CD #CD589F
square
#CDC158 #58CD86 #5864CD #CD589F
split-complementary
#CDC158 #589FCD #8658CD
monochromatic
#837A27 #B2A635 #CDC158 #DBD287 #E9E4B6

Accessibility & contrast

On white

1.85
#CDC158 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.36
#CDC158 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC158
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC158#FFFFFF#000000##000000
##CDC1581.001.8511.3611.36
#FFFFFF1.851.0021.0021.00
#00000011.3621.001.001.00
##00000011.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BB4D
Deuteranopia (green-blind)
#D4C15D
Tritanopia (blue-blind)
#DBB5AA
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #cdc158;
/* rgb */ color: rgb(205, 193, 88);
/* oklch */ color: oklch(80.0% 0.127 102.8);
Tailwind
colors: {
  custom: {
    50: '#dfd38b',
    500: '#cdc158',
    950: '#000000',
  },
}
SCSS
$custom: #cdc158;
$custom-light: #dfd38b;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc158",
  "rgb": {
    "r": 205,
    "g": 193,
    "b": 88
  },
  "hsl": {
    "h": 53.846,
    "s": 53.917,
    "l": 57.451
  },
  "oklch": {
    "l": 0.80013,
    "c": 0.12693,
    "h": 102.8
  },
  "luminance": 0.51824
}

Semantic roles & 50–950 ramp

primary
#CDC158
secondary
#3F468B
accent
#5ADD4B
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140C
muted
#84837F

Preview Lab

Preview with #CDC158

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

Preview Lab → · Contrast checker → · Palette generator →

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