#CFC787#CFC787

#CFC787 is a very light, moderate yellow. Relative luminance 0.559; OKLCH L 82.1% C 0.084 H 102.0°. Best body text is #000000 at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#CFC787
RGBrgb(207, 199, 135)
HSLhsl(53, 43%, 67%)
HSVhsv(53, 35%, 81%)
CMYKcmyk(0%, 3.9%, 34.8%, 18.8%)
CIE-LABlab(79.54, -6.74, 33.09)
CIE-LCHlch(79.54, 33.77, 101.52°)
OKLaboklab(82.12% -0.0173 0.0819)
OKLCHoklch(82.12% 0.084 102)
XYZxyz(50.5294, 55.8627, 31.0378)
Luminance0.5586 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC787 #878FCF
analogous
#CFA387 #CFC787 #B3CF87
triadic
#CFC787 #87CFC7 #C787CF
tetradic
#CFC787 #87CFA3 #878FCF #CF87B3
square
#CFC787 #87CFA3 #878FCF #CF87B3
split-complementary
#CFC787 #87B3CF #A387CF
monochromatic
#9D923F #BEB35B #CFC787 #E0DBB3 #F2F0DE

Accessibility & contrast

On white

1.73
#CFC787 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.17
#CFC787 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC787
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC787#FFFFFF#000000##000000
##CFC7871.001.7312.1712.17
#FFFFFF1.731.0021.0021.00
#00000012.1721.001.001.00
##00000012.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2C382
Deuteranopia (green-blind)
#D5C789
Tritanopia (blue-blind)
#D9BFB7
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cfc787;
/* rgb */ color: rgb(207, 199, 135);
/* oklch */ color: oklch(82.1% 0.084 102.0);
Tailwind
colors: {
  custom: {
    50: '#ded7aa',
    500: '#cfc787',
    950: '#000000',
  },
}
SCSS
$custom: #cfc787;
$custom-light: #ded7aa;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc787",
  "rgb": {
    "r": 207,
    "g": 199,
    "b": 135
  },
  "hsl": {
    "h": 53.333,
    "s": 42.857,
    "l": 67.059
  },
  "oklch": {
    "l": 0.82123,
    "c": 0.08371,
    "h": 102
  },
  "luminance": 0.55862
}

Semantic roles & 50–950 ramp

primary
#CFC787
secondary
#5860A3
accent
#3EB630
background
#FEFEFD
surface
#FCFBF7
border
#D5D4D0
text
#151410
muted
#848381

Preview Lab

Preview with #CFC787

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

Preview Lab → · Contrast checker → · Palette generator →

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