#CFCF52#CFCF52

#CFCF52 is a very light, vivid yellow. Relative luminance 0.585; OKLCH L 83.1% C 0.146 H 109.2°. Best body text is #000000 at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#CFCF52
RGBrgb(207, 207, 82)
HSLhsl(60, 57%, 57%)
HSVhsv(60, 60%, 81%)
CMYKcmyk(0%, 0%, 60.4%, 18.8%)
CIE-LABlab(81.02, -15.71, 60.30)
CIE-LCHlch(81.02, 62.31, 104.60°)
OKLaboklab(83.09% -0.0479 0.1377)
OKLCHoklch(83.09% 0.146 109.2)
XYZxyz(49.5694, 58.5016, 16.6618)
Luminance0.5850 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFCF52 #5252CF
analogous
#CF9152 #CFCF52 #91CF52
triadic
#CFCF52 #52CFCF #CF52CF
tetradic
#CFCF52 #52CF91 #5252CF #CF5291
square
#CFCF52 #52CF91 #5252CF #CF5291
split-complementary
#CFCF52 #5291CF #9152CF
monochromatic
#828224 #B2B231 #CFCF52 #DCDC82 #EAEAB2

Accessibility & contrast

On white

1.65
#CFCF52 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.70
#CFCF52 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFCF52
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFCF52#FFFFFF#000000##000000
##CFCF521.001.6512.7012.70
#FFFFFF1.651.0021.0021.00
#00000012.7021.001.001.00
##00000012.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#DFC743
Deuteranopia (green-blind)
#E0CB5A
Tritanopia (blue-blind)
#DDC3B5
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #cfcf52;
/* rgb */ color: rgb(207, 207, 82);
/* oklch */ color: oklch(83.1% 0.146 109.2);
Tailwind
colors: {
  custom: {
    50: '#e0dd88',
    500: '#cfcf52',
    950: '#000000',
  },
}
SCSS
$custom: #cfcf52;
$custom-light: #e0dd88;
$custom-dark: #000000;
JSON
{
  "hex": "#cfcf52",
  "rgb": {
    "r": 207,
    "g": 207,
    "b": 82
  },
  "hsl": {
    "h": 60,
    "s": 56.561,
    "l": 56.667
  },
  "oklch": {
    "l": 0.83093,
    "c": 0.14584,
    "h": 109.2
  },
  "luminance": 0.585
}

Semantic roles & 50–950 ramp

primary
#CFCF52
secondary
#3C3C8A
accent
#48E048
background
#FEFEFC
surface
#FCFCF4
border
#D5D5CE
text
#16150C
muted
#84847F

Preview Lab

Preview with #CFCF52

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

Preview Lab → · Contrast checker → · Palette generator →

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