#CFC52F#CFC52F

#CFC52F is a light, vivid yellow. Relative luminance 0.534; OKLCH L 80.7% C 0.159 H 105.4°. Best body text is #000000 at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#CFC52F
RGBrgb(207, 197, 47)
HSLhsl(56, 63%, 50%)
HSVhsv(56, 77%, 81%)
CMYKcmyk(0%, 4.8%, 77.3%, 18.8%)
CIE-LABlab(78.11, -12.49, 70.37)
CIE-LCHlch(78.11, 71.47, 100.07°)
OKLaboklab(80.71% -0.0423 0.1532)
OKLCHoklch(80.71% 0.159 105.4)
XYZxyz(46.2135, 53.4049, 10.5627)
Luminance0.5340 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC52F #2F39CF
analogous
#CF752F #CFC52F #89CF2F
triadic
#CFC52F #2FCFC5 #C52FCF
tetradic
#CFC52F #2FCF75 #2F39CF #CF2F89
square
#CFC52F #2FCF75 #2F39CF #CF2F89
split-complementary
#CFC52F #2F89CF #752FCF
monochromatic
#6B6618 #9D9624 #CFC52F #DBD360 #E6E192

Accessibility & contrast

On white

1.80
#CFC52F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.68
#CFC52F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC52F
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC52F#FFFFFF#000000##000000
##CFC52F1.001.8011.6811.68
#FFFFFF1.801.0021.0021.00
#00000011.6821.001.001.00
##00000011.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7BE02
Deuteranopia (green-blind)
#DAC43B
Tritanopia (blue-blind)
#DFB7A9
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #cfc52f;
/* rgb */ color: rgb(207, 197, 47);
/* oklch */ color: oklch(80.7% 0.159 105.4);
Tailwind
colors: {
  custom: {
    50: '#e2d674',
    500: '#cfc52f',
    950: '#000000',
  },
}
SCSS
$custom: #cfc52f;
$custom-light: #e2d674;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc52f",
  "rgb": {
    "r": 207,
    "g": 197,
    "b": 47
  },
  "hsl": {
    "h": 56.25,
    "s": 62.992,
    "l": 49.804
  },
  "oklch": {
    "l": 0.80705,
    "c": 0.15896,
    "h": 105.4
  },
  "luminance": 0.53403
}

Semantic roles & 50–950 ramp

primary
#CFC52F
secondary
#2D3275
accent
#4CE642
background
#FEFEFB
surface
#FDFBF1
border
#D5D4CB
text
#161409
muted
#84837D

Preview Lab

Preview with #CFC52F

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

Preview Lab → · Contrast checker → · Palette generator →

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