#CCC271#CCC271

#CCC271 is a light, moderate yellow. Relative luminance 0.526; OKLCH L 80.5% C 0.103 H 102.2°. Best body text is #000000 at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#CCC271
RGBrgb(204, 194, 113)
HSLhsl(53, 47%, 62%)
HSVhsv(53, 45%, 80%)
CMYKcmyk(0%, 4.9%, 44.6%, 20%)
CIE-LABlab(77.65, -7.77, 41.85)
CIE-LCHlch(77.65, 42.57, 100.52°)
OKLaboklab(80.46% -0.0219 0.1009)
OKLCHoklch(80.46% 0.103 102.2)
XYZxyz(47.1753, 52.6146, 23.2902)
Luminance0.5261 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC271 #717BCC
analogous
#CC9571 #CCC271 #A8CC71
triadic
#CCC271 #71CCC2 #C271CC
tetradic
#CCC271 #71CC95 #717BCC #CC71A8
square
#CCC271 #71CC95 #717BCC #CC71A8
split-complementary
#CCC271 #71A8CC #9571CC
monochromatic
#8F8533 #BCAF44 #CCC271 #DCD59E #ECE9CB

Accessibility & contrast

On white

1.82
#CCC271 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.52
#CCC271 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC271
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC271#FFFFFF#000000##000000
##CCC2711.001.8211.5211.52
#FFFFFF1.821.0021.0021.00
#00000011.5221.001.001.00
##00000011.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#CFBD6A
Deuteranopia (green-blind)
#D3C274
Tritanopia (blue-blind)
#D8B8AF
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #ccc271;
/* rgb */ color: rgb(204, 194, 113);
/* oklch */ color: oklch(80.5% 0.103 102.2);
Tailwind
colors: {
  custom: {
    50: '#ddd49b',
    500: '#ccc271',
    950: '#000000',
  },
}
SCSS
$custom: #ccc271;
$custom-light: #ddd49b;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc271",
  "rgb": {
    "r": 204,
    "g": 194,
    "b": 113
  },
  "hsl": {
    "h": 53.407,
    "s": 47.15,
    "l": 62.157
  },
  "oklch": {
    "l": 0.80461,
    "c": 0.1032,
    "h": 102.2
  },
  "luminance": 0.52613
}

Semantic roles & 50–950 ramp

primary
#CCC271
secondary
#4B5496
accent
#3BBA2B
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140E
muted
#84837F

Preview Lab

Preview with #CCC271

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

Preview Lab → · Contrast checker → · Palette generator →

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