#CFC72F#CFC72F

#CFC72F is a light, vivid yellow. Relative luminance 0.543; OKLCH L 81.1% C 0.161 H 106.3°. Best body text is #000000 at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#CFC72F
RGBrgb(207, 199, 47)
HSLhsl(57, 63%, 50%)
HSVhsv(57, 77%, 81%)
CMYKcmyk(0%, 3.9%, 77.3%, 18.8%)
CIE-LABlab(78.65, -13.50, 70.85)
CIE-LCHlch(78.65, 72.12, 100.79°)
OKLaboklab(81.13% -0.0451 0.1543)
OKLCHoklch(81.13% 0.161 106.3)
XYZxyz(46.6706, 54.3192, 10.7150)
Luminance0.5432 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC72F #2F37CF
analogous
#CF772F #CFC72F #87CF2F
triadic
#CFC72F #2FCFC7 #C72FCF
tetradic
#CFC72F #2FCF77 #2F37CF #CF2F87
square
#CFC72F #2FCF77 #2F37CF #CF2F87
split-complementary
#CFC72F #2F87CF #772FCF
monochromatic
#6B6718 #9D9724 #CFC72F #DBD560 #E6E292

Accessibility & contrast

On white

1.77
#CFC72F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.86
#CFC72F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC72F
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC72F#FFFFFF#000000##000000
##CFC72F1.001.7711.8611.86
#FFFFFF1.771.0021.0021.00
#00000011.8621.001.001.00
##00000011.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9BF00
Deuteranopia (green-blind)
#DCC53C
Tritanopia (blue-blind)
#DFB9AB
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #cfc72f;
/* rgb */ color: rgb(207, 199, 47);
/* oklch */ color: oklch(81.1% 0.161 106.3);
Tailwind
colors: {
  custom: {
    50: '#e2d775',
    500: '#cfc72f',
    950: '#000000',
  },
}
SCSS
$custom: #cfc72f;
$custom-light: #e2d775;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc72f",
  "rgb": {
    "r": 207,
    "g": 199,
    "b": 47
  },
  "hsl": {
    "h": 57,
    "s": 62.992,
    "l": 49.804
  },
  "oklch": {
    "l": 0.8113,
    "c": 0.16072,
    "h": 106.3
  },
  "luminance": 0.54317
}

Semantic roles & 50–950 ramp

primary
#CFC72F
secondary
#2D3175
accent
#4AE642
background
#FEFEFB
surface
#FDFBF1
border
#D5D4CB
text
#161409
muted
#84837D

Preview Lab

Preview with #CFC72F

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

Preview Lab → · Contrast checker → · Palette generator →

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