#CFC771#CFC771

#CFC771 is a light, moderate yellow. Relative luminance 0.553; OKLCH L 81.8% C 0.108 H 103.8°. Best body text is #000000 at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#CFC771
RGBrgb(207, 199, 113)
HSLhsl(55, 49%, 63%)
HSVhsv(55, 45%, 81%)
CMYKcmyk(0%, 3.9%, 45.4%, 18.8%)
CIE-LABlab(79.22, -9.13, 43.85)
CIE-LCHlch(79.22, 44.79, 101.76°)
OKLaboklab(81.77% -0.0259 0.1053)
OKLCHoklch(81.77% 0.108 103.8)
XYZxyz(49.1373, 55.3059, 23.7063)
Luminance0.5531 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC771 #7179CF
analogous
#CF9871 #CFC771 #A8CF71
triadic
#CFC771 #71CFC7 #C771CF
tetradic
#CFC771 #71CF98 #7179CF #CF71A8
square
#CFC771 #71CF98 #7179CF #CF71A8
split-complementary
#CFC771 #71A8CF #9871CF
monochromatic
#948B32 #C0B543 #CFC771 #DED99F #EEEBCC

Accessibility & contrast

On white

1.74
#CFC771 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.06
#CFC771 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC771
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC771#FFFFFF#000000##000000
##CFC7711.001.7412.0612.06
#FFFFFF1.741.0021.0021.00
#00000012.0621.001.001.00
##00000012.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5C26A
Deuteranopia (green-blind)
#D7C675
Tritanopia (blue-blind)
#DBBDB3
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #cfc771;
/* rgb */ color: rgb(207, 199, 113);
/* oklch */ color: oklch(81.8% 0.108 103.8);
Tailwind
colors: {
  custom: {
    50: '#dfd79b',
    500: '#cfc771',
    950: '#000000',
  },
}
SCSS
$custom: #cfc771;
$custom-light: #dfd79b;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc771",
  "rgb": {
    "r": 207,
    "g": 199,
    "b": 113
  },
  "hsl": {
    "h": 54.894,
    "s": 49.474,
    "l": 62.745
  },
  "oklch": {
    "l": 0.81767,
    "c": 0.10844,
    "h": 103.8
  },
  "luminance": 0.55305
}

Semantic roles & 50–950 ramp

primary
#CFC771
secondary
#4B519A
accent
#35BD29
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140E
muted
#84837F

Preview Lab

Preview with #CFC771

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

Preview Lab → · Contrast checker → · Palette generator →

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