#CFCA52#CFCA52

#CFCA52 is a very light, vivid yellow. Relative luminance 0.561; OKLCH L 82.0% C 0.141 H 106.9°. Best body text is #000000 at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#CFCA52
RGBrgb(207, 202, 82)
HSLhsl(58, 57%, 57%)
HSVhsv(58, 60%, 81%)
CMYKcmyk(0%, 2.4%, 60.4%, 18.8%)
CIE-LABlab(79.68, -13.20, 58.85)
CIE-LCHlch(79.68, 60.31, 102.65°)
OKLaboklab(82.03% -0.0408 0.1347)
OKLCHoklch(82.03% 0.141 106.9)
XYZxyz(48.3772, 56.1172, 16.2644)
Luminance0.5612 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFCA52 #5257CF
analogous
#CF8C52 #CFCA52 #96CF52
triadic
#CFCA52 #52CFCA #CA52CF
tetradic
#CFCA52 #52CF8C #5257CF #CF5296
square
#CFCA52 #52CF8C #5257CF #CF5296
split-complementary
#CFCA52 #5296CF #8C52CF
monochromatic
#827F24 #B2AD31 #CFCA52 #DCD982 #EAE7B2

Accessibility & contrast

On white

1.72
#CFCA52 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.22
#CFCA52 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFCA52
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFCA52#FFFFFF#000000##000000
##CFCA521.001.7212.2212.22
#FFFFFF1.721.0021.0021.00
#00000012.2221.001.001.00
##00000012.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#DAC344
Deuteranopia (green-blind)
#DCC859
Tritanopia (blue-blind)
#DDBEB1
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cfca52;
/* rgb */ color: rgb(207, 202, 82);
/* oklch */ color: oklch(82.0% 0.141 106.9);
Tailwind
colors: {
  custom: {
    50: '#e0d987',
    500: '#cfca52',
    950: '#000000',
  },
}
SCSS
$custom: #cfca52;
$custom-light: #e0d987;
$custom-dark: #000000;
JSON
{
  "hex": "#cfca52",
  "rgb": {
    "r": 207,
    "g": 202,
    "b": 82
  },
  "hsl": {
    "h": 57.6,
    "s": 56.561,
    "l": 56.667
  },
  "oklch": {
    "l": 0.82028,
    "c": 0.14073,
    "h": 106.9
  },
  "luminance": 0.56116
}

Semantic roles & 50–950 ramp

primary
#CFCA52
secondary
#3C3F8A
accent
#4EE048
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16140C
muted
#84837F

Preview Lab

Preview with #CFCA52

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

Preview Lab → · Contrast checker → · Palette generator →

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