#CFC97F#CFC97F

#CFC97F is a very light, moderate yellow. Relative luminance 0.566; OKLCH L 82.4% C 0.095 H 104.3°. Best body text is #000000 at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#CFC97F
RGBrgb(207, 201, 127)
HSLhsl(56, 45%, 65%)
HSVhsv(56, 39%, 81%)
CMYKcmyk(0%, 2.9%, 38.6%, 18.8%)
CIE-LABlab(79.94, -8.69, 37.72)
CIE-LCHlch(79.94, 38.71, 102.98°)
OKLaboklab(82.4% -0.0235 0.0923)
OKLCHoklch(82.4% 0.095 104.3)
XYZxyz(50.4503, 56.5722, 28.3365)
Luminance0.5657 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC97F #7F85CF
analogous
#CFA17F #CFC97F #ADCF7F
triadic
#CFC97F #7FCFC9 #C97FCF
tetradic
#CFC97F #7FCFA1 #7F85CF #CF7FAD
square
#CFC97F #7FCFA1 #7F85CF #CF7FAD
split-complementary
#CFC97F #7FADCF #A17FCF
monochromatic
#9A933A #BEB652 #CFC97F #E0DCAC #F0EFD8

Accessibility & contrast

On white

1.71
#CFC97F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.31
#CFC97F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC97F
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC97F#FFFFFF#000000##000000
##CFC97F1.001.7112.3112.31
#FFFFFF1.711.0021.0021.00
#00000012.3121.001.001.00
##00000012.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5C479
Deuteranopia (green-blind)
#D8C882
Tritanopia (blue-blind)
#DAC0B7
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #cfc97f;
/* rgb */ color: rgb(207, 201, 127);
/* oklch */ color: oklch(82.4% 0.095 104.3);
Tailwind
colors: {
  custom: {
    50: '#dfd9a5',
    500: '#cfc97f',
    950: '#000000',
  },
}
SCSS
$custom: #cfc97f;
$custom-light: #dfd9a5;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc97f",
  "rgb": {
    "r": 207,
    "g": 201,
    "b": 127
  },
  "hsl": {
    "h": 55.5,
    "s": 45.455,
    "l": 65.49
  },
  "oklch": {
    "l": 0.82402,
    "c": 0.0952,
    "h": 104.3
  },
  "luminance": 0.56571
}

Semantic roles & 50–950 ramp

primary
#CFC97F
secondary
#5358A0
accent
#37B92D
background
#FEFEFC
surface
#FCFBF6
border
#D5D4D0
text
#15140F
muted
#848380

Preview Lab

Preview with #CFC97F

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

Preview Lab → · Contrast checker → · Palette generator →

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