#CCD271#CCD271

#CCD271 is a very light, vivid yellow. Relative luminance 0.601; OKLCH L 83.8% C 0.121 H 111.9°. Best body text is #000000 at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#CCD271
RGBrgb(204, 210, 113)
HSLhsl(64, 52%, 63%)
HSVhsv(64, 46%, 82%)
CMYKcmyk(2.9%, 0%, 46.2%, 17.6%)
CIE-LABlab(81.91, -15.89, 47.09)
CIE-LCHlch(81.91, 49.70, 108.65°)
OKLaboklab(83.85% -0.0451 0.1125)
OKLCHoklch(83.85% 0.121 111.9)
XYZxyz(50.9299, 60.1237, 24.5417)
Luminance0.6012 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCD271 #7771D2
analogous
#D2A771 #CCD271 #9BD271
triadic
#CCD271 #71CCD2 #D271CC
tetradic
#CCD271 #71D2A7 #7771D2 #D2719B
square
#CCD271 #71D2A7 #7771D2 #D2719B
split-complementary
#CCD271 #719BD2 #A771D2
monochromatic
#929830 #BBC343 #CCD271 #DDE19F #EDEFCE

Accessibility & contrast

On white

1.61
#CCD271 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.02
#CCD271 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCD271
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCD271#FFFFFF#000000##000000
##CCD2711.001.6113.0213.02
#FFFFFF1.611.0021.0021.00
#00000013.0221.001.001.00
##00000013.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#DFCA69
Deuteranopia (green-blind)
#DFCD76
Tritanopia (blue-blind)
#D7C8BB
Achromatopsia (no color)
#CCCCCC

Design tokens & code

CSS
--color: #ccd271;
/* rgb */ color: rgb(204, 210, 113);
/* oklch */ color: oklch(83.8% 0.121 111.9);
Tailwind
colors: {
  custom: {
    50: '#dddf9c',
    500: '#ccd271',
    950: '#000000',
  },
}
SCSS
$custom: #ccd271;
$custom-light: #dddf9c;
$custom-dark: #000000;
JSON
{
  "hex": "#ccd271",
  "rgb": {
    "r": 204,
    "g": 210,
    "b": 113
  },
  "hsl": {
    "h": 63.711,
    "s": 51.872,
    "l": 63.333
  },
  "oklch": {
    "l": 0.83847,
    "c": 0.12122,
    "h": 111.9
  },
  "luminance": 0.60123
}

Semantic roles & 50–950 ramp

primary
#CCD271
secondary
#4F4A9E
accent
#26BF30
background
#FEFEFC
surface
#FCFCF5
border
#D5D5CF
text
#15150E
muted
#84847F

Preview Lab

Preview with #CCD271

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

Preview Lab → · Contrast checker → · Palette generator →

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