#CFC052#CFC052

#CFC052 is a light, vivid yellow. Relative luminance 0.516; OKLCH L 79.9% C 0.131 H 101.6°. Best body text is #000000 at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#CFC052
RGBrgb(207, 192, 82)
HSLhsl(53, 57%, 57%)
HSVhsv(53, 60%, 81%)
CMYKcmyk(0%, 7.2%, 60.4%, 18.8%)
CIE-LABlab(77.03, -8.11, 55.94)
CIE-LCHlch(77.03, 56.53, 98.25°)
OKLaboklab(79.92% -0.0263 0.1285)
OKLCHoklch(79.92% 0.131 101.6)
XYZxyz(46.1065, 51.5757, 15.5075)
Luminance0.5157 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC052 #5261CF
analogous
#CF8252 #CFC052 #A0CF52
triadic
#CFC052 #52CFC0 #C052CF
tetradic
#CFC052 #52CF82 #5261CF #CF52A0
square
#CFC052 #52CF82 #5261CF #CF52A0
split-complementary
#CFC052 #52A0CF #8252CF
monochromatic
#827724 #B2A331 #CFC052 #DCD182 #EAE3B2

Accessibility & contrast

On white

1.86
#CFC052 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.31
#CFC052 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC052
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC052#FFFFFF#000000##000000
##CFC0521.001.8611.3111.31
#FFFFFF1.861.0021.0021.00
#00000011.3121.001.001.00
##00000011.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0BB46
Deuteranopia (green-blind)
#D5C158
Tritanopia (blue-blind)
#DEB4A8
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #cfc052;
/* rgb */ color: rgb(207, 192, 82);
/* oklch */ color: oklch(79.9% 0.131 101.6);
Tailwind
colors: {
  custom: {
    50: '#e0d287',
    500: '#cfc052',
    950: '#000000',
  },
}
SCSS
$custom: #cfc052;
$custom-light: #e0d287;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc052",
  "rgb": {
    "r": 207,
    "g": 192,
    "b": 82
  },
  "hsl": {
    "h": 52.8,
    "s": 56.561,
    "l": 56.667
  },
  "oklch": {
    "l": 0.79917,
    "c": 0.13116,
    "h": 101.6
  },
  "luminance": 0.51574
}

Semantic roles & 50–950 ramp

primary
#CFC052
secondary
#3C458A
accent
#5AE048
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CFC052

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

Preview Lab → · Contrast checker → · Palette generator →

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