#CFC287#CFC287

#CFC287 is a light, moderate yellow. Relative luminance 0.536; OKLCH L 81.1% C 0.079 H 97.2°. Best body text is #000000 at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#CFC287
RGBrgb(207, 194, 135)
HSLhsl(49, 43%, 67%)
HSVhsv(49, 35%, 81%)
CMYKcmyk(0%, 6.3%, 34.8%, 18.8%)
CIE-LABlab(78.23, -4.15, 31.37)
CIE-LCHlch(78.23, 31.65, 97.54°)
OKLaboklab(81.09% -0.0099 0.0779)
OKLCHoklch(81.09% 0.079 97.2)
XYZxyz(49.3978, 53.5996, 30.6606)
Luminance0.5360 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC287 #8794CF
analogous
#CF9E87 #CFC287 #B8CF87
triadic
#CFC287 #87CFC2 #C287CF
tetradic
#CFC287 #87CF9E #8794CF #CF87B8
square
#CFC287 #87CF9E #8794CF #CF87B8
split-complementary
#CFC287 #87B8CF #9E87CF
monochromatic
#9D8C3F #BEAC5B #CFC287 #E0D8B3 #F2EEDE

Accessibility & contrast

On white

1.79
#CFC287 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.72
#CFC287 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC287
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC287#FFFFFF#000000##000000
##CFC2871.001.7911.7211.72
#FFFFFF1.791.0021.0021.00
#00000011.7221.001.001.00
##00000011.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#CDBF83
Deuteranopia (green-blind)
#D1C489
Tritanopia (blue-blind)
#DABAB3
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #cfc287;
/* rgb */ color: rgb(207, 194, 135);
/* oklch */ color: oklch(81.1% 0.079 97.2);
Tailwind
colors: {
  custom: {
    50: '#ded4aa',
    500: '#cfc287',
    950: '#000000',
  },
}
SCSS
$custom: #cfc287;
$custom-light: #ded4aa;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc287",
  "rgb": {
    "r": 207,
    "g": 194,
    "b": 135
  },
  "hsl": {
    "h": 49.167,
    "s": 42.857,
    "l": 67.059
  },
  "oklch": {
    "l": 0.81088,
    "c": 0.0785,
    "h": 97.2
  },
  "luminance": 0.53598
}

Semantic roles & 50–950 ramp

primary
#CFC287
secondary
#5865A3
accent
#48B630
background
#FEFEFD
surface
#FCFBF7
border
#D5D4D0
text
#151410
muted
#848381

Preview Lab

Preview with #CFC287

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

Preview Lab → · Contrast checker → · Palette generator →

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