#CFD771#CFD771

#CFD771 is a very light, vivid yellow. Relative luminance 0.631; OKLCH L 85.2% C 0.127 H 112.8°. Best body text is #000000 at 13.61:1 contrast (WCAG AA passes).

Color values

HEX#CFD771
RGBrgb(207, 215, 113)
HSLhsl(65, 56%, 64%)
HSVhsv(65, 47%, 84%)
CMYKcmyk(3.7%, 0%, 47.4%, 15.7%)
CIE-LABlab(83.47, -17.19, 49.04)
CIE-LCHlch(83.47, 51.96, 109.31°)
OKLaboklab(85.16% -0.049 0.1168)
OKLCHoklch(85.16% 0.127 112.8)
XYZxyz(53.0141, 63.0594, 24.9985)
Luminance0.6306 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFD771 #7971D7
analogous
#D7AC71 #CFD771 #9CD771
triadic
#CFD771 #71CFD7 #D771CF
tetradic
#CFD771 #71D7AC #7971D7 #D7719C
square
#CFD771 #71D7AC #7971D7 #D7719C
split-complementary
#CFD771 #719CD7 #AC71D7
monochromatic
#97A02D #BFCA41 #CFD771 #DFE4A1 #EFF2D0

Accessibility & contrast

On white

1.54
#CFD771 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.61
#CFD771 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFD771
13.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFD771#FFFFFF#000000##000000
##CFD7711.001.5413.6113.61
#FFFFFF1.541.0021.0021.00
#00000013.6121.001.001.00
##00000013.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#E4CF68
Deuteranopia (green-blind)
#E4D176
Tritanopia (blue-blind)
#DACDBF
Achromatopsia (no color)
#D0D0D0

Design tokens & code

CSS
--color: #cfd771;
/* rgb */ color: rgb(207, 215, 113);
/* oklch */ color: oklch(85.2% 0.127 112.8);
Tailwind
colors: {
  custom: {
    50: '#dfe39c',
    500: '#cfd771',
    950: '#000000',
  },
}
SCSS
$custom: #cfd771;
$custom-light: #dfe39c;
$custom-dark: #000000;
JSON
{
  "hex": "#cfd771",
  "rgb": {
    "r": 207,
    "g": 215,
    "b": 113
  },
  "hsl": {
    "h": 64.706,
    "s": 56.044,
    "l": 64.314
  },
  "oklch": {
    "l": 0.85155,
    "c": 0.12663,
    "h": 112.8
  },
  "luminance": 0.63059
}

Semantic roles & 50–950 ramp

primary
#CFD771
secondary
#4F48A4
accent
#22C42F
background
#FEFEFC
surface
#FCFCF5
border
#D5D5CF
text
#15150E
muted
#84847F

Preview Lab

Preview with #CFD771

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

Preview Lab → · Contrast checker → · Palette generator →

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