#CDC58F#CDC58F

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

Color values

HEX#CDC58F
RGBrgb(205, 197, 143)
HSLhsl(52, 38%, 68%)
HSVhsv(52, 30%, 80%)
CMYKcmyk(0%, 3.9%, 30.2%, 19.6%)
CIE-LABlab(78.98, -5.50, 28.16)
CIE-LCHlch(78.98, 28.69, 101.06°)
OKLaboklab(81.69% -0.0133 0.0705)
OKLCHoklch(81.69% 0.072 100.7)
XYZxyz(50.1014, 54.8959, 33.9380)
Luminance0.5490 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC58F #8F97CD
analogous
#CDA68F #CDC58F #B6CD8F
triadic
#CDC58F #8FCDC5 #C58FCD
tetradic
#CDC58F #8FCDA6 #8F97CD #CD8FB6
square
#CDC58F #8FCDA6 #8F97CD #CD8FB6
split-complementary
#CDC58F #8FB6CD #A68FCD
monochromatic
#9C9146 #BAAF65 #CDC58F #E0DBB9 #F3F1E4

Accessibility & contrast

On white

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

On black

11.98
#CDC58F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC58F
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC58F#FFFFFF#000000##000000
##CDC58F1.001.7511.9811.98
#FFFFFF1.751.0021.0021.00
#00000011.9821.001.001.00
##00000011.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#CFC18B
Deuteranopia (green-blind)
#D2C591
Tritanopia (blue-blind)
#D6BEB7
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #cdc58f;
/* rgb */ color: rgb(205, 197, 143);
/* oklch */ color: oklch(81.7% 0.072 100.7);
Tailwind
colors: {
  custom: {
    50: '#ddd6b0',
    500: '#cdc58f',
    950: '#000000',
  },
}
SCSS
$custom: #cdc58f;
$custom-light: #ddd6b0;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc58f",
  "rgb": {
    "r": 205,
    "g": 197,
    "b": 143
  },
  "hsl": {
    "h": 52.258,
    "s": 38.272,
    "l": 68.235
  },
  "oklch": {
    "l": 0.81688,
    "c": 0.07177,
    "h": 100.7
  },
  "luminance": 0.54895
}

Semantic roles & 50–950 ramp

primary
#CDC58F
secondary
#5E67A2
accent
#44B134
background
#FEFEFD
surface
#FCFBF7
border
#D5D4D0
text
#151410
muted
#848381

Preview Lab

Preview with #CDC58F

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

Preview Lab → · Contrast checker → · Palette generator →

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