#CDD271#CDD271

#CDD271 is a very light, vivid yellow. Relative luminance 0.603; OKLCH L 83.9% C 0.121 H 111.3°. Best body text is #000000 at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#CDD271
RGBrgb(205, 210, 113)
HSLhsl(63, 52%, 63%)
HSVhsv(63, 46%, 82%)
CMYKcmyk(2.4%, 0%, 46.2%, 17.6%)
CIE-LABlab(81.98, -15.49, 47.20)
CIE-LCHlch(81.98, 49.68, 108.17°)
OKLaboklab(83.93% -0.044 0.1127)
OKLCHoklch(83.93% 0.121 111.3)
XYZxyz(51.2049, 60.2655, 24.5546)
Luminance0.6027 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDD271 #7671D2
analogous
#D2A671 #CDD271 #9CD271
triadic
#CDD271 #71CDD2 #D271CD
tetradic
#CDD271 #71D2A6 #7671D2 #D2719C
square
#CDD271 #71D2A6 #7671D2 #D2719C
split-complementary
#CDD271 #719CD2 #A671D2
monochromatic
#939830 #BDC343 #CDD271 #DDE19F #EEEFCE

Accessibility & contrast

On white

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

On black

13.05
#CDD271 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDD271
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDD271#FFFFFF#000000##000000
##CDD2711.001.6113.0513.05
#FFFFFF1.611.0021.0021.00
#00000013.0521.001.001.00
##00000013.0521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cdd271;
/* rgb */ color: rgb(205, 210, 113);
/* oklch */ color: oklch(83.9% 0.121 111.3);
Tailwind
colors: {
  custom: {
    50: '#dedf9c',
    500: '#cdd271',
    950: '#000000',
  },
}
SCSS
$custom: #cdd271;
$custom-light: #dedf9c;
$custom-dark: #000000;
JSON
{
  "hex": "#cdd271",
  "rgb": {
    "r": 205,
    "g": 210,
    "b": 113
  },
  "hsl": {
    "h": 63.093,
    "s": 51.872,
    "l": 63.333
  },
  "oklch": {
    "l": 0.83927,
    "c": 0.12104,
    "h": 111.3
  },
  "luminance": 0.60265
}

Semantic roles & 50–950 ramp

primary
#CDD271
secondary
#4E4A9E
accent
#26BF2E
background
#FEFEFC
surface
#FCFCF5
border
#D5D5CF
text
#15150E
muted
#84847F

Preview Lab

Preview with #CDD271

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

Preview Lab → · Contrast checker → · Palette generator →

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