#CCC371#CCC371

#CCC371 is a light, moderate yellow. Relative luminance 0.531; OKLCH L 80.7% C 0.104 H 102.9°. Best body text is #000000 at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#CCC371
RGBrgb(204, 195, 113)
HSLhsl(54, 47%, 62%)
HSVhsv(54, 45%, 80%)
CMYKcmyk(0%, 4.4%, 44.6%, 20%)
CIE-LABlab(77.91, -8.29, 42.18)
CIE-LCHlch(77.91, 42.98, 101.12°)
OKLaboklab(80.67% -0.0234 0.1016)
OKLCHoklch(80.67% 0.104 102.9)
XYZxyz(47.3987, 53.0612, 23.3646)
Luminance0.5306 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC371 #717ACC
analogous
#CC9671 #CCC371 #A8CC71
triadic
#CCC371 #71CCC3 #C371CC
tetradic
#CCC371 #71CC96 #717ACC #CC71A8
square
#CCC371 #71CC96 #717ACC #CC71A8
split-complementary
#CCC371 #71A8CC #9671CC
monochromatic
#8F8633 #BCB044 #CCC371 #DCD69E #ECE9CB

Accessibility & contrast

On white

1.81
#CCC371 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.61
#CCC371 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC371
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC371#FFFFFF#000000##000000
##CCC3711.001.8111.6111.61
#FFFFFF1.811.0021.0021.00
#00000011.6121.001.001.00
##00000011.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0BE6A
Deuteranopia (green-blind)
#D3C375
Tritanopia (blue-blind)
#D8B9AF
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #ccc371;
/* rgb */ color: rgb(204, 195, 113);
/* oklch */ color: oklch(80.7% 0.104 102.9);
Tailwind
colors: {
  custom: {
    50: '#ddd59b',
    500: '#ccc371',
    950: '#000000',
  },
}
SCSS
$custom: #ccc371;
$custom-light: #ddd59b;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc371",
  "rgb": {
    "r": 204,
    "g": 195,
    "b": 113
  },
  "hsl": {
    "h": 54.066,
    "s": 47.15,
    "l": 62.157
  },
  "oklch": {
    "l": 0.8067,
    "c": 0.10425,
    "h": 102.9
  },
  "luminance": 0.5306
}

Semantic roles & 50–950 ramp

primary
#CCC371
secondary
#4B5396
accent
#39BA2B
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140E
muted
#84837F

Preview Lab

Preview with #CCC371

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

Preview Lab → · Contrast checker → · Palette generator →

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