#CFD171#CFD171

#CFD171 is a very light, moderate yellow. Relative luminance 0.601; OKLCH L 83.9% C 0.120 H 109.8°. Best body text is #000000 at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#CFD171
RGBrgb(207, 209, 113)
HSLhsl(61, 51%, 63%)
HSVhsv(61, 46%, 82%)
CMYKcmyk(1%, 0%, 45.9%, 18%)
CIE-LABlab(81.87, -14.19, 47.10)
CIE-LCHlch(81.87, 49.19, 106.77°)
OKLaboklab(83.88% -0.0404 0.1125)
OKLCHoklch(83.88% 0.12 109.8)
XYZxyz(51.5142, 60.0597, 24.4986)
Luminance0.6006 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFD171 #7371D1
analogous
#D1A371 #CFD171 #9FD171
triadic
#CFD171 #71CFD1 #D171CF
tetradic
#CFD171 #71D1A3 #7371D1 #D1719F
square
#CFD171 #71D1A3 #7371D1 #D1719F
split-complementary
#CFD171 #719FD1 #A371D1
monochromatic
#959731 #BFC243 #CFD171 #DFE09F #EEEFCD

Accessibility & contrast

On white

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

On black

13.01
#CFD171 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFD171
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFD171#FFFFFF#000000##000000
##CFD1711.001.6113.0113.01
#FFFFFF1.611.0021.0021.00
#00000013.0121.001.001.00
##00000013.0121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cfd171;
/* rgb */ color: rgb(207, 209, 113);
/* oklch */ color: oklch(83.9% 0.120 109.8);
Tailwind
colors: {
  custom: {
    50: '#dfdf9c',
    500: '#cfd171',
    950: '#000000',
  },
}
SCSS
$custom: #cfd171;
$custom-light: #dfdf9c;
$custom-dark: #000000;
JSON
{
  "hex": "#cfd171",
  "rgb": {
    "r": 207,
    "g": 209,
    "b": 113
  },
  "hsl": {
    "h": 61.25,
    "s": 51.064,
    "l": 63.137
  },
  "oklch": {
    "l": 0.83877,
    "c": 0.11955,
    "h": 109.8
  },
  "luminance": 0.60059
}

Semantic roles & 50–950 ramp

primary
#CFD171
secondary
#4C4A9C
accent
#27BE2A
background
#FEFEFC
surface
#FCFCF5
border
#D5D5CF
text
#15150E
muted
#84847F

Preview Lab

Preview with #CFD171

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

Preview Lab → · Contrast checker → · Palette generator →

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