#CDC85F#CDC85F

#CDC85F is a light, vivid yellow. Relative luminance 0.551; OKLCH L 81.6% C 0.128 H 106.4°. Best body text is #000000 at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#CDC85F
RGBrgb(205, 200, 95)
HSLhsl(57, 52%, 59%)
HSVhsv(57, 54%, 80%)
CMYKcmyk(0%, 2.4%, 53.7%, 19.6%)
CIE-LABlab(79.11, -12.06, 52.34)
CIE-LCHlch(79.11, 53.71, 102.97°)
OKLaboklab(81.57% -0.036 0.1224)
OKLCHoklch(81.57% 0.128 106.4)
XYZxyz(47.8980, 55.1153, 18.9395)
Luminance0.5511 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC85F #5F64CD
analogous
#CD915F #CDC85F #9BCD5F
triadic
#CDC85F #5FCDC8 #C85FCD
tetradic
#CDC85F #5FCD91 #5F64CD #CD5F9B
square
#CDC85F #5FCD91 #5F64CD #CD5F9B
split-complementary
#CDC85F #5F9BCD #915FCD
monochromatic
#87832A #B6B039 #CDC85F #DCD88E #EAE8BC

Accessibility & contrast

On white

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

On black

12.02
#CDC85F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC85F
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC85F#FFFFFF#000000##000000
##CDC85F1.001.7512.0212.02
#FFFFFF1.751.0021.0021.00
#00000012.0221.001.001.00
##00000012.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C155
Deuteranopia (green-blind)
#D9C664
Tritanopia (blue-blind)
#DABDB1
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #cdc85f;
/* rgb */ color: rgb(205, 200, 95);
/* oklch */ color: oklch(81.6% 0.128 106.4);
Tailwind
colors: {
  custom: {
    50: '#ded88f',
    500: '#cdc85f',
    950: '#000000',
  },
}
SCSS
$custom: #cdc85f;
$custom-light: #ded88f;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc85f",
  "rgb": {
    "r": 205,
    "g": 200,
    "b": 95
  },
  "hsl": {
    "h": 57.273,
    "s": 52.381,
    "l": 58.824
  },
  "oklch": {
    "l": 0.81572,
    "c": 0.12755,
    "h": 106.4
  },
  "luminance": 0.55114
}

Semantic roles & 50–950 ramp

primary
#CDC85F
secondary
#42458E
accent
#53DC4C
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140D
muted
#84837F

Preview Lab

Preview with #CDC85F

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

Preview Lab → · Contrast checker → · Palette generator →

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