#CDC58E#CDC58E

#CDC58E is a light, moderate yellow. Relative luminance 0.549; OKLCH L 81.7% C 0.073 H 100.8°. Best body text is #000000 at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#CDC58E
RGBrgb(205, 197, 142)
HSLhsl(52, 39%, 68%)
HSVhsv(52, 31%, 80%)
CMYKcmyk(0%, 3.9%, 30.7%, 19.6%)
CIE-LABlab(78.96, -5.63, 28.66)
CIE-LCHlch(78.96, 29.21, 101.11°)
OKLaboklab(81.67% -0.0137 0.0717)
OKLCHoklch(81.67% 0.073 100.8)
XYZxyz(50.0260, 54.8657, 33.5408)
Luminance0.5486 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC58E #8E96CD
analogous
#CDA58E #CDC58E #B5CD8E
triadic
#CDC58E #8ECDC5 #C58ECD
tetradic
#CDC58E #8ECDA5 #8E96CD #CD8EB5
square
#CDC58E #8ECDA5 #8E96CD #CD8EB5
split-complementary
#CDC58E #8EB5CD #A58ECD
monochromatic
#9C9145 #BAAF64 #CDC58E #E0DBB8 #F3F1E3

Accessibility & contrast

On white

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

On black

11.97
#CDC58E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC58E
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC58E#FFFFFF#000000##000000
##CDC58E1.001.7511.9711.97
#FFFFFF1.751.0021.0021.00
#00000011.9721.001.001.00
##00000011.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#CFC18A
Deuteranopia (green-blind)
#D2C590
Tritanopia (blue-blind)
#D6BDB7
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #cdc58e;
/* rgb */ color: rgb(205, 197, 142);
/* oklch */ color: oklch(81.7% 0.073 100.8);
Tailwind
colors: {
  custom: {
    50: '#ddd6af',
    500: '#cdc58e',
    950: '#000000',
  },
}
SCSS
$custom: #cdc58e;
$custom-light: #ddd6af;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc58e",
  "rgb": {
    "r": 205,
    "g": 197,
    "b": 142
  },
  "hsl": {
    "h": 52.381,
    "s": 38.65,
    "l": 68.039
  },
  "oklch": {
    "l": 0.81669,
    "c": 0.07298,
    "h": 100.8
  },
  "luminance": 0.54865
}

Semantic roles & 50–950 ramp

primary
#CDC58E
secondary
#5D66A2
accent
#44B234
background
#FEFEFD
surface
#FCFBF7
border
#D5D4D0
text
#151410
muted
#848381

Preview Lab

Preview with #CDC58E

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

Preview Lab → · Contrast checker → · Palette generator →

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