#CFC387#CFC387

#CFC387 is a light, moderate yellow. Relative luminance 0.540; OKLCH L 81.3% C 0.080 H 98.2°. Best body text is #000000 at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#CFC387
RGBrgb(207, 195, 135)
HSLhsl(50, 43%, 67%)
HSVhsv(50, 35%, 81%)
CMYKcmyk(0%, 5.8%, 34.8%, 18.8%)
CIE-LABlab(78.49, -4.67, 31.72)
CIE-LCHlch(78.49, 32.06, 98.38°)
OKLaboklab(81.29% -0.0114 0.0787)
OKLCHoklch(81.29% 0.08 98.2)
XYZxyz(49.6211, 54.0462, 30.7350)
Luminance0.5404 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC387 #8793CF
analogous
#CF9F87 #CFC387 #B7CF87
triadic
#CFC387 #87CFC3 #C387CF
tetradic
#CFC387 #87CF9F #8793CF #CF87B7
square
#CFC387 #87CF9F #8793CF #CF87B7
split-complementary
#CFC387 #87B7CF #9F87CF
monochromatic
#9D8D3F #BEAD5B #CFC387 #E0D9B3 #F2EFDE

Accessibility & contrast

On white

1.78
#CFC387 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.81
#CFC387 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC387
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC387#FFFFFF#000000##000000
##CFC3871.001.7811.8111.81
#FFFFFF1.781.0021.0021.00
#00000011.8121.001.001.00
##00000011.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#CEC083
Deuteranopia (green-blind)
#D2C489
Tritanopia (blue-blind)
#DABBB4
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #cfc387;
/* rgb */ color: rgb(207, 195, 135);
/* oklch */ color: oklch(81.3% 0.080 98.2);
Tailwind
colors: {
  custom: {
    50: '#ded5aa',
    500: '#cfc387',
    950: '#000000',
  },
}
SCSS
$custom: #cfc387;
$custom-light: #ded5aa;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc387",
  "rgb": {
    "r": 207,
    "g": 195,
    "b": 135
  },
  "hsl": {
    "h": 50,
    "s": 42.857,
    "l": 67.059
  },
  "oklch": {
    "l": 0.81294,
    "c": 0.0795,
    "h": 98.2
  },
  "luminance": 0.54045
}

Semantic roles & 50–950 ramp

primary
#CFC387
secondary
#5864A3
accent
#46B630
background
#FEFEFD
surface
#FCFBF7
border
#D5D4D0
text
#151410
muted
#848381

Preview Lab

Preview with #CFC387

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

Preview Lab → · Contrast checker → · Palette generator →

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