#CFC987#CFC987

#CFC987 is a very light, moderate yellow. Relative luminance 0.568; OKLCH L 82.5% C 0.086 H 103.7°. Best body text is #000000 at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#CFC987
RGBrgb(207, 201, 135)
HSLhsl(55, 43%, 67%)
HSVhsv(55, 35%, 81%)
CMYKcmyk(0%, 2.9%, 34.8%, 18.8%)
CIE-LABlab(80.06, -7.77, 33.78)
CIE-LCHlch(80.06, 34.66, 102.96°)
OKLaboklab(82.54% -0.0203 0.0835)
OKLCHoklch(82.54% 0.086 103.7)
XYZxyz(50.9926, 56.7891, 31.1922)
Luminance0.5679 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC987 #878DCF
analogous
#CFA587 #CFC987 #B1CF87
triadic
#CFC987 #87CFC9 #C987CF
tetradic
#CFC987 #87CFA5 #878DCF #CF87B1
square
#CFC987 #87CFA5 #878DCF #CF87B1
split-complementary
#CFC987 #87B1CF #A587CF
monochromatic
#9D953F #BEB55B #CFC987 #E0DDB3 #F2F0DE

Accessibility & contrast

On white

1.70
#CFC987 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.36
#CFC987 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC987
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC987#FFFFFF#000000##000000
##CFC9871.001.7012.3612.36
#FFFFFF1.701.0021.0021.00
#00000012.3621.001.001.00
##00000012.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4C482
Deuteranopia (green-blind)
#D7C88A
Tritanopia (blue-blind)
#D9C1B8
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #cfc987;
/* rgb */ color: rgb(207, 201, 135);
/* oklch */ color: oklch(82.5% 0.086 103.7);
Tailwind
colors: {
  custom: {
    50: '#ded9aa',
    500: '#cfc987',
    950: '#000000',
  },
}
SCSS
$custom: #cfc987;
$custom-light: #ded9aa;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc987",
  "rgb": {
    "r": 207,
    "g": 201,
    "b": 135
  },
  "hsl": {
    "h": 55,
    "s": 42.857,
    "l": 67.059
  },
  "oklch": {
    "l": 0.82539,
    "c": 0.08593,
    "h": 103.7
  },
  "luminance": 0.56788
}

Semantic roles & 50–950 ramp

primary
#CFC987
secondary
#585EA3
accent
#3BB630
background
#FEFEFD
surface
#FCFBF7
border
#D5D4D0
text
#151410
muted
#848381

Preview Lab

Preview with #CFC987

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

Preview Lab → · Contrast checker → · Palette generator →

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