#CFD871#CFD871

#CFD871 is a very light, vivid yellow. Relative luminance 0.636; OKLCH L 85.4% C 0.128 H 113.2°. Best body text is #000000 at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#CFD871
RGBrgb(207, 216, 113)
HSLhsl(65, 57%, 65%)
HSVhsv(65, 48%, 85%)
CMYKcmyk(4.2%, 0%, 47.7%, 15.3%)
CIE-LABlab(83.74, -17.68, 49.36)
CIE-LCHlch(83.74, 52.43, 109.71°)
OKLaboklab(85.37% -0.0504 0.1175)
OKLCHoklch(85.37% 0.128 113.2)
XYZxyz(53.2695, 63.5702, 25.0837)
Luminance0.6357 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFD871 #7A71D8
analogous
#D8AE71 #CFD871 #9CD871
triadic
#CFD871 #71CFD8 #D871CF
tetradic
#CFD871 #71D8AE #7A71D8 #D8719C
square
#CFD871 #71D8AE #7A71D8 #D8719C
split-complementary
#CFD871 #719CD8 #AE71D8
monochromatic
#98A22D #BFCB41 #CFD871 #DFE5A1 #EFF2D1

Accessibility & contrast

On white

1.53
#CFD871 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.71
#CFD871 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFD871
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFD871#FFFFFF#000000##000000
##CFD8711.001.5313.7113.71
#FFFFFF1.531.0021.0021.00
#00000013.7121.001.001.00
##00000013.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#E5D068
Deuteranopia (green-blind)
#E5D276
Tritanopia (blue-blind)
#DACEC0
Achromatopsia (no color)
#D1D1D1

Design tokens & code

CSS
--color: #cfd871;
/* rgb */ color: rgb(207, 216, 113);
/* oklch */ color: oklch(85.4% 0.128 113.2);
Tailwind
colors: {
  custom: {
    50: '#dfe49c',
    500: '#cfd871',
    950: '#000000',
  },
}
SCSS
$custom: #cfd871;
$custom-light: #dfe49c;
$custom-dark: #000000;
JSON
{
  "hex": "#cfd871",
  "rgb": {
    "r": 207,
    "g": 216,
    "b": 113
  },
  "hsl": {
    "h": 65.243,
    "s": 56.906,
    "l": 64.51
  },
  "oklch": {
    "l": 0.85368,
    "c": 0.12784,
    "h": 113.2
  },
  "luminance": 0.63569
}

Semantic roles & 50–950 ramp

primary
#CFD871
secondary
#5047A6
accent
#21C42F
background
#FEFEFC
surface
#FCFCF5
border
#D5D5CF
text
#15150E
muted
#84847F

Preview Lab

Preview with #CFD871

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

Preview Lab → · Contrast checker → · Palette generator →

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