#CFC187#CFC187

#CFC187 is a light, moderate yellow. Relative luminance 0.532; OKLCH L 80.9% C 0.078 H 96.2°. Best body text is #000000 at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#CFC187
RGBrgb(207, 193, 135)
HSLhsl(48, 43%, 67%)
HSVhsv(48, 35%, 81%)
CMYKcmyk(0%, 6.8%, 34.8%, 18.8%)
CIE-LABlab(77.97, -3.63, 31.03)
CIE-LCHlch(77.97, 31.24, 96.68°)
OKLaboklab(80.88% -0.0084 0.0771)
OKLCHoklch(80.88% 0.078 96.2)
XYZxyz(49.1760, 53.1560, 30.5867)
Luminance0.5315 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC187 #8795CF
analogous
#CF9D87 #CFC187 #B9CF87
triadic
#CFC187 #87CFC1 #C187CF
tetradic
#CFC187 #87CF9D #8795CF #CF87B9
square
#CFC187 #87CF9D #8795CF #CF87B9
split-complementary
#CFC187 #87B9CF #9D87CF
monochromatic
#9D8B3F #BEAA5B #CFC187 #E0D8B3 #F2EEDE

Accessibility & contrast

On white

1.81
#CFC187 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.63
#CFC187 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC187
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC187#FFFFFF#000000##000000
##CFC1871.001.8111.6311.63
#FFFFFF1.811.0021.0021.00
#00000011.6321.001.001.00
##00000011.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#CCBE83
Deuteranopia (green-blind)
#D0C389
Tritanopia (blue-blind)
#DAB9B2
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #cfc187;
/* rgb */ color: rgb(207, 193, 135);
/* oklch */ color: oklch(80.9% 0.078 96.2);
Tailwind
colors: {
  custom: {
    50: '#ded3aa',
    500: '#cfc187',
    950: '#000000',
  },
}
SCSS
$custom: #cfc187;
$custom-light: #ded3aa;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc187",
  "rgb": {
    "r": 207,
    "g": 193,
    "b": 135
  },
  "hsl": {
    "h": 48.333,
    "s": 42.857,
    "l": 67.059
  },
  "oklch": {
    "l": 0.80882,
    "c": 0.07752,
    "h": 96.2
  },
  "luminance": 0.53155
}

Semantic roles & 50–950 ramp

primary
#CFC187
secondary
#5866A3
accent
#4AB630
background
#FEFEFD
surface
#FCFBF7
border
#D5D4D0
text
#151410
muted
#848381

Preview Lab

Preview with #CFC187

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

Preview Lab → · Contrast checker → · Palette generator →

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