#CDC287#CDC287

#CDC287 is a light, moderate yellow. Relative luminance 0.533; OKLCH L 80.9% C 0.078 H 98.9°. Best body text is #000000 at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#CDC287
RGBrgb(205, 194, 135)
HSLhsl(51, 41%, 67%)
HSVhsv(51, 34%, 80%)
CMYKcmyk(0%, 5.4%, 34.1%, 19.6%)
CIE-LABlab(78.06, -4.94, 31.12)
CIE-LCHlch(78.06, 31.51, 99.02°)
OKLaboklab(80.92% -0.0121 0.0773)
OKLCHoklch(80.92% 0.078 98.9)
XYZxyz(48.8424, 53.3132, 30.6346)
Luminance0.5331 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC287 #8792CD
analogous
#CD9F87 #CDC287 #B5CD87
triadic
#CDC287 #87CDC2 #C287CD
tetradic
#CDC287 #87CD9F #8792CD #CD87B5
square
#CDC287 #87CD9F #8792CD #CD87B5
split-complementary
#CDC287 #87B5CD #9F87CD
monochromatic
#9A8C40 #BBAC5C #CDC287 #DFD8B2 #F1EEDD

Accessibility & contrast

On white

1.80
#CDC287 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.66
#CDC287 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC287
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC287#FFFFFF#000000##000000
##CDC2871.001.8011.6611.66
#FFFFFF1.801.0021.0021.00
#00000011.6621.001.001.00
##00000011.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#CDBF83
Deuteranopia (green-blind)
#D0C389
Tritanopia (blue-blind)
#D7BAB3
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #cdc287;
/* rgb */ color: rgb(205, 194, 135);
/* oklch */ color: oklch(80.9% 0.078 98.9);
Tailwind
colors: {
  custom: {
    50: '#ddd4aa',
    500: '#cdc287',
    950: '#000000',
  },
}
SCSS
$custom: #cdc287;
$custom-light: #ddd4aa;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc287",
  "rgb": {
    "r": 205,
    "g": 194,
    "b": 135
  },
  "hsl": {
    "h": 50.571,
    "s": 41.176,
    "l": 66.667
  },
  "oklch": {
    "l": 0.80915,
    "c": 0.07824,
    "h": 98.9
  },
  "luminance": 0.53312
}

Semantic roles & 50–950 ramp

primary
#CDC287
secondary
#5864A0
accent
#46B431
background
#FEFEFD
surface
#FCFBF7
border
#D5D4D0
text
#151410
muted
#848381

Preview Lab

Preview with #CDC287

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

Preview Lab → · Contrast checker → · Palette generator →

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