#CFD987#CFD987

#CFD987 is a very light, moderate yellow. Relative luminance 0.646; OKLCH L 85.9% C 0.106 H 114.3°. Best body text is #000000 at 13.93:1 contrast (WCAG AA passes).

Color values

HEX#CFD987
RGBrgb(207, 217, 135)
HSLhsl(67, 52%, 69%)
HSVhsv(67, 38%, 85%)
CMYKcmyk(4.6%, 0%, 37.8%, 14.9%)
CIE-LABlab(84.30, -15.87, 39.27)
CIE-LCHlch(84.30, 42.35, 112.01°)
OKLaboklab(85.91% -0.0435 0.0962)
OKLCHoklch(85.91% 0.106 114.3)
XYZxyz(54.9185, 64.6410, 32.5008)
Luminance0.6464 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFD987 #9187D9
analogous
#D9BA87 #CFD987 #A6D987
triadic
#CFD987 #87CFD9 #D987CF
tetradic
#CFD987 #87D9BA #9187D9 #D987A6
square
#CFD987 #87D9BA #9187D9 #D987A6
split-complementary
#CFD987 #87A6D9 #BA87D9
monochromatic
#A0AE37 #BCCA59 #CFD987 #E2E8B5 #F4F6E4

Accessibility & contrast

On white

1.51
#CFD987 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.93
#CFD987 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFD987
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFD987#FFFFFF#000000##000000
##CFD9871.001.5113.9313.93
#FFFFFF1.511.0021.0021.00
#00000013.9321.001.001.00
##00000013.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E4D281
Deuteranopia (green-blind)
#E3D38B
Tritanopia (blue-blind)
#D8D0C5
Achromatopsia (no color)
#D2D2D2

Design tokens & code

CSS
--color: #cfd987;
/* rgb */ color: rgb(207, 217, 135);
/* oklch */ color: oklch(85.9% 0.106 114.3);
Tailwind
colors: {
  custom: {
    50: '#dfe4ab',
    500: '#cfd987',
    950: '#000000',
  },
}
SCSS
$custom: #cfd987;
$custom-light: #dfe4ab;
$custom-dark: #000000;
JSON
{
  "hex": "#cfd987",
  "rgb": {
    "r": 207,
    "g": 217,
    "b": 135
  },
  "hsl": {
    "h": 67.317,
    "s": 51.899,
    "l": 69.02
  },
  "oklch": {
    "l": 0.85907,
    "c": 0.10553,
    "h": 114.3
  },
  "luminance": 0.6464
}

Semantic roles & 50–950 ramp

primary
#CFD987
secondary
#6055AF
accent
#26BF39
background
#FEFEFD
surface
#FCFCF7
border
#D5D5D0
text
#151510
muted
#848481

Preview Lab

Preview with #CFD987

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

Preview Lab → · Contrast checker → · Palette generator →

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