#CDC758#CDC758

#CDC758 is a light, vivid yellow. Relative luminance 0.545; OKLCH L 81.3% C 0.133 H 106.1°. Best body text is #000000 at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#CDC758
RGBrgb(205, 199, 88)
HSLhsl(57, 54%, 57%)
HSVhsv(57, 57%, 80%)
CMYKcmyk(0%, 2.9%, 57.1%, 19.6%)
CIE-LABlab(78.77, -12.09, 55.15)
CIE-LCHlch(78.77, 56.46, 102.37°)
OKLaboklab(81.28% -0.0369 0.1276)
OKLCHoklch(81.28% 0.133 106.1)
XYZxyz(47.3632, 54.5320, 17.2614)
Luminance0.5453 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC758 #585ECD
analogous
#CD8C58 #CDC758 #99CD58
triadic
#CDC758 #58CDC7 #C758CD
tetradic
#CDC758 #58CD8C #585ECD #CD5899
square
#CDC758 #58CD8C #585ECD #CD5899
split-complementary
#CDC758 #5899CD #8C58CD
monochromatic
#837F27 #B2AC35 #CDC758 #DBD787 #E9E7B6

Accessibility & contrast

On white

1.76
#CDC758 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.91
#CDC758 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC758
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC758#FFFFFF#000000##000000
##CDC7581.001.7611.9111.91
#FFFFFF1.761.0021.0021.00
#00000011.9121.001.001.00
##00000011.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6C04C
Deuteranopia (green-blind)
#D9C55E
Tritanopia (blue-blind)
#DBBBAF
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #cdc758;
/* rgb */ color: rgb(205, 199, 88);
/* oklch */ color: oklch(81.3% 0.133 106.1);
Tailwind
colors: {
  custom: {
    50: '#dfd78b',
    500: '#cdc758',
    950: '#000000',
  },
}
SCSS
$custom: #cdc758;
$custom-light: #dfd78b;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc758",
  "rgb": {
    "r": 205,
    "g": 199,
    "b": 88
  },
  "hsl": {
    "h": 56.923,
    "s": 53.917,
    "l": 57.451
  },
  "oklch": {
    "l": 0.81281,
    "c": 0.13284,
    "h": 106.1
  },
  "luminance": 0.54531
}

Semantic roles & 50–950 ramp

primary
#CDC758
secondary
#3F438B
accent
#52DD4B
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140C
muted
#84837F

Preview Lab

Preview with #CDC758

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

Preview Lab → · Contrast checker → · Palette generator →

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