#CFC871#CFC871

#CFC871 is a light, moderate yellow. Relative luminance 0.558; OKLCH L 82.0% C 0.109 H 104.5°. Best body text is #000000 at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#CFC871
RGBrgb(207, 200, 113)
HSLhsl(56, 49%, 63%)
HSVhsv(56, 45%, 81%)
CMYKcmyk(0%, 3.4%, 45.4%, 18.8%)
CIE-LABlab(79.48, -9.64, 44.17)
CIE-LCHlch(79.48, 45.21, 102.31°)
OKLaboklab(81.98% -0.0274 0.106)
OKLCHoklch(81.98% 0.109 104.5)
XYZxyz(49.3681, 55.7676, 23.7832)
Luminance0.5577 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC871 #7178CF
analogous
#CF9971 #CFC871 #A7CF71
triadic
#CFC871 #71CFC8 #C871CF
tetradic
#CFC871 #71CF99 #7178CF #CF71A7
square
#CFC871 #71CF99 #7178CF #CF71A7
split-complementary
#CFC871 #71A7CF #9971CF
monochromatic
#948C32 #C0B643 #CFC871 #DEDA9F #EEEBCC

Accessibility & contrast

On white

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

On black

12.15
#CFC871 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC871
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC871#FFFFFF#000000##000000
##CFC8711.001.7312.1512.15
#FFFFFF1.731.0021.0021.00
#00000012.1521.001.001.00
##00000012.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6C26A
Deuteranopia (green-blind)
#D8C775
Tritanopia (blue-blind)
#DBBEB3
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cfc871;
/* rgb */ color: rgb(207, 200, 113);
/* oklch */ color: oklch(82.0% 0.109 104.5);
Tailwind
colors: {
  custom: {
    50: '#dfd89b',
    500: '#cfc871',
    950: '#000000',
  },
}
SCSS
$custom: #cfc871;
$custom-light: #dfd89b;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc871",
  "rgb": {
    "r": 207,
    "g": 200,
    "b": 113
  },
  "hsl": {
    "h": 55.532,
    "s": 49.474,
    "l": 62.745
  },
  "oklch": {
    "l": 0.81976,
    "c": 0.10949,
    "h": 104.5
  },
  "luminance": 0.55766
}

Semantic roles & 50–950 ramp

primary
#CFC871
secondary
#4B509A
accent
#34BD29
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140E
muted
#84837F

Preview Lab

Preview with #CFC871

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

Preview Lab → · Contrast checker → · Palette generator →

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