#CFC87F#CFC87F

#CFC87F is a very light, moderate yellow. Relative luminance 0.561; OKLCH L 82.2% C 0.094 H 103.5°. Best body text is #000000 at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#CFC87F
RGBrgb(207, 200, 127)
HSLhsl(55, 45%, 65%)
HSVhsv(55, 39%, 81%)
CMYKcmyk(0%, 3.4%, 38.6%, 18.8%)
CIE-LABlab(79.67, -8.18, 37.38)
CIE-LCHlch(79.67, 38.27, 102.34°)
OKLaboklab(82.19% -0.022 0.0915)
OKLCHoklch(82.19% 0.094 103.5)
XYZxyz(50.2180, 56.1075, 28.2590)
Luminance0.5611 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC87F #7F86CF
analogous
#CFA07F #CFC87F #AECF7F
triadic
#CFC87F #7FCFC8 #C87FCF
tetradic
#CFC87F #7FCFA0 #7F86CF #CF7FAE
square
#CFC87F #7FCFA0 #7F86CF #CF7FAE
split-complementary
#CFC87F #7FAECF #A07FCF
monochromatic
#9A913A #BEB552 #CFC87F #E0DBAC #F0EED8

Accessibility & contrast

On white

1.72
#CFC87F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.22
#CFC87F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC87F
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC87F#FFFFFF#000000##000000
##CFC87F1.001.7212.2212.22
#FFFFFF1.721.0021.0021.00
#00000012.2221.001.001.00
##00000012.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4C37A
Deuteranopia (green-blind)
#D7C782
Tritanopia (blue-blind)
#DABFB6
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cfc87f;
/* rgb */ color: rgb(207, 200, 127);
/* oklch */ color: oklch(82.2% 0.094 103.5);
Tailwind
colors: {
  custom: {
    50: '#dfd8a5',
    500: '#cfc87f',
    950: '#000000',
  },
}
SCSS
$custom: #cfc87f;
$custom-light: #dfd8a5;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc87f",
  "rgb": {
    "r": 207,
    "g": 200,
    "b": 127
  },
  "hsl": {
    "h": 54.75,
    "s": 45.455,
    "l": 65.49
  },
  "oklch": {
    "l": 0.82193,
    "c": 0.0941,
    "h": 103.5
  },
  "luminance": 0.56106
}

Semantic roles & 50–950 ramp

primary
#CFC87F
secondary
#5359A0
accent
#39B92D
background
#FEFEFC
surface
#FCFBF6
border
#D5D4D0
text
#15140F
muted
#848380

Preview Lab

Preview with #CFC87F

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

Preview Lab → · Contrast checker → · Palette generator →

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