#CFC786#CFC786

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

Color values

HEX#CFC786
RGBrgb(207, 199, 134)
HSLhsl(53, 43%, 67%)
HSVhsv(53, 35%, 81%)
CMYKcmyk(0%, 3.9%, 35.3%, 18.8%)
CIE-LABlab(79.52, -6.86, 33.59)
CIE-LCHlch(79.52, 34.28, 101.55°)
OKLaboklab(82.1% -0.0177 0.083)
OKLCHoklch(82.1% 0.085 102.1)
XYZxyz(50.4593, 55.8347, 30.6687)
Luminance0.5583 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC786 #868ECF
analogous
#CFA386 #CFC786 #B3CF86
triadic
#CFC786 #86CFC7 #C786CF
tetradic
#CFC786 #86CFA3 #868ECF #CF86B3
square
#CFC786 #86CFA3 #868ECF #CF86B3
split-complementary
#CFC786 #86B3CF #A386CF
monochromatic
#9D923E #BEB35A #CFC786 #E0DBB2 #F2F0DE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CFC786#FFFFFF#000000##000000
##CFC7861.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)
#D2C381
Deuteranopia (green-blind)
#D5C788
Tritanopia (blue-blind)
#D9BEB6
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cfc786;
/* rgb */ color: rgb(207, 199, 134);
/* oklch */ color: oklch(82.1% 0.085 102.1);
Tailwind
colors: {
  custom: {
    50: '#ded7aa',
    500: '#cfc786',
    950: '#000000',
  },
}
SCSS
$custom: #cfc786;
$custom-light: #ded7aa;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc786",
  "rgb": {
    "r": 207,
    "g": 199,
    "b": 134
  },
  "hsl": {
    "h": 53.425,
    "s": 43.195,
    "l": 66.863
  },
  "oklch": {
    "l": 0.82105,
    "c": 0.0849,
    "h": 102.1
  },
  "luminance": 0.55833
}

Semantic roles & 50–950 ramp

primary
#CFC786
secondary
#575FA2
accent
#3EB62F
background
#FEFEFD
surface
#FCFBF7
border
#D5D4D0
text
#151410
muted
#848381

Preview Lab

Preview with #CFC786

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

Preview Lab → · Contrast checker → · Palette generator →

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