#C8C871#C8C871

#C8C871 is a light, moderate yellow. Relative luminance 0.548; OKLCH L 81.4% C 0.110 H 108.6°. Best body text is #000000 at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#C8C871
RGBrgb(200, 200, 113)
HSLhsl(60, 44%, 61%)
HSVhsv(60, 44%, 78%)
CMYKcmyk(0%, 0%, 43.5%, 21.6%)
CIE-LABlab(78.92, -12.46, 43.35)
CIE-LCHlch(78.92, 45.10, 106.03°)
OKLaboklab(81.39% -0.0351 0.1043)
OKLCHoklch(81.39% 0.11 108.6)
XYZxyz(47.4552, 54.7812, 23.6936)
Luminance0.5478 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C8C871 #7171C8
analogous
#C89D71 #C8C871 #9DC871
triadic
#C8C871 #71C8C8 #C871C8
tetradic
#C8C871 #71C89D #7171C8 #C8719D
square
#C8C871 #71C89D #7171C8 #C8719D
split-complementary
#C8C871 #719DC8 #9D71C8
monochromatic
#898935 #B6B646 #C8C871 #D9D99D #EAEAC9

Accessibility & contrast

On white

1.76
#C8C871 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.96
#C8C871 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C8C871
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C8C871#FFFFFF#000000##000000
##C8C8711.001.7611.9611.96
#FFFFFF1.761.0021.0021.00
#00000011.9621.001.001.00
##00000011.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5C26A
Deuteranopia (green-blind)
#D6C575
Tritanopia (blue-blind)
#D3BEB3
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #c8c871;
/* rgb */ color: rgb(200, 200, 113);
/* oklch */ color: oklch(81.4% 0.110 108.6);
Tailwind
colors: {
  custom: {
    50: '#dad89b',
    500: '#c8c871',
    950: '#000000',
  },
}
SCSS
$custom: #c8c871;
$custom-light: #dad89b;
$custom-dark: #000000;
JSON
{
  "hex": "#c8c871",
  "rgb": {
    "r": 200,
    "g": 200,
    "b": 113
  },
  "hsl": {
    "h": 60,
    "s": 44.162,
    "l": 61.373
  },
  "oklch": {
    "l": 0.81389,
    "c": 0.11001,
    "h": 108.6
  },
  "luminance": 0.5478
}

Semantic roles & 50–950 ramp

primary
#C8C871
secondary
#4C4C91
accent
#2EB72E
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140E
muted
#84837F

Preview Lab

Preview with #C8C871

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

Preview Lab → · Contrast checker → · Palette generator →

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