#CCC871#CCC871

#CCC871 is a light, moderate yellow. Relative luminance 0.553; OKLCH L 81.7% C 0.110 H 106.3°. Best body text is #000000 at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#CCC871
RGBrgb(204, 200, 113)
HSLhsl(57, 47%, 62%)
HSVhsv(57, 45%, 80%)
CMYKcmyk(0%, 2%, 44.6%, 20%)
CIE-LABlab(79.24, -10.85, 43.82)
CIE-LCHlch(79.24, 45.14, 103.91°)
OKLaboklab(81.72% -0.0307 0.1053)
OKLCHoklch(81.72% 0.11 106.3)
XYZxyz(48.5377, 55.3394, 23.7443)
Luminance0.5534 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC871 #7175CC
analogous
#CC9B71 #CCC871 #A2CC71
triadic
#CCC871 #71CCC8 #C871CC
tetradic
#CCC871 #71CC9B #7175CC #CC71A2
square
#CCC871 #71CC9B #7175CC #CC71A2
split-complementary
#CCC871 #71A2CC #9B71CC
monochromatic
#8F8B33 #BCB744 #CCC871 #DCD99E #ECEBCB

Accessibility & contrast

On white

1.74
#CCC871 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.07
#CCC871 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC871
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC871#FFFFFF#000000##000000
##CCC8711.001.7412.0712.07
#FFFFFF1.741.0021.0021.00
#00000012.0721.001.001.00
##00000012.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5C26A
Deuteranopia (green-blind)
#D7C675
Tritanopia (blue-blind)
#D8BEB3
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #ccc871;
/* rgb */ color: rgb(204, 200, 113);
/* oklch */ color: oklch(81.7% 0.110 106.3);
Tailwind
colors: {
  custom: {
    50: '#ddd89b',
    500: '#ccc871',
    950: '#000000',
  },
}
SCSS
$custom: #ccc871;
$custom-light: #ddd89b;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc871",
  "rgb": {
    "r": 204,
    "g": 200,
    "b": 113
  },
  "hsl": {
    "h": 57.363,
    "s": 47.15,
    "l": 62.157
  },
  "oklch": {
    "l": 0.81722,
    "c": 0.10965,
    "h": 106.3
  },
  "luminance": 0.55338
}

Semantic roles & 50–950 ramp

primary
#CCC871
secondary
#4B4F96
accent
#31BA2B
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140E
muted
#84837F

Preview Lab

Preview with #CCC871

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

Preview Lab → · Contrast checker → · Palette generator →

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