#CFD787#CFD787

#CFD787 is a very light, moderate yellow. Relative luminance 0.636; OKLCH L 85.5% C 0.103 H 113.2°. Best body text is #000000 at 13.72:1 contrast (WCAG AA passes).

Color values

HEX#CFD787
RGBrgb(207, 215, 135)
HSLhsl(66, 50%, 69%)
HSVhsv(66, 37%, 84%)
CMYKcmyk(3.7%, 0%, 37.2%, 15.7%)
CIE-LABlab(83.77, -14.87, 38.58)
CIE-LCHlch(83.77, 41.35, 111.08°)
OKLaboklab(85.48% -0.0406 0.0946)
OKLCHoklch(85.48% 0.103 113.2)
XYZxyz(54.4061, 63.6162, 32.3300)
Luminance0.6362 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFD787 #8F87D7
analogous
#D7B787 #CFD787 #A7D787
triadic
#CFD787 #87CFD7 #D787CF
tetradic
#CFD787 #87D7B7 #8F87D7 #D787A7
square
#CFD787 #87D7B7 #8F87D7 #D787A7
split-complementary
#CFD787 #87A7D7 #B787D7
monochromatic
#9FAB39 #BDC859 #CFD787 #E1E6B5 #F4F6E3

Accessibility & contrast

On white

1.53
#CFD787 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.72
#CFD787 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFD787
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFD787#FFFFFF#000000##000000
##CFD7871.001.5313.7213.72
#FFFFFF1.531.0021.0021.00
#00000013.7221.001.001.00
##00000013.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#E2D081
Deuteranopia (green-blind)
#E2D28B
Tritanopia (blue-blind)
#D8CEC3
Achromatopsia (no color)
#D1D1D1

Design tokens & code

CSS
--color: #cfd787;
/* rgb */ color: rgb(207, 215, 135);
/* oklch */ color: oklch(85.5% 0.103 113.2);
Tailwind
colors: {
  custom: {
    50: '#dfe3ab',
    500: '#cfd787',
    950: '#000000',
  },
}
SCSS
$custom: #cfd787;
$custom-light: #dfe3ab;
$custom-dark: #000000;
JSON
{
  "hex": "#cfd787",
  "rgb": {
    "r": 207,
    "g": 215,
    "b": 135
  },
  "hsl": {
    "h": 66,
    "s": 50,
    "l": 68.627
  },
  "oklch": {
    "l": 0.85482,
    "c": 0.10295,
    "h": 113.2
  },
  "luminance": 0.63616
}

Semantic roles & 50–950 ramp

primary
#CFD787
secondary
#5E55AD
accent
#28BD37
background
#FEFEFD
surface
#FCFCF7
border
#D5D5D0
text
#151510
muted
#848481

Preview Lab

Preview with #CFD787

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

Preview Lab → · Contrast checker → · Palette generator →

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