#CFC852#CFC852

#CFC852 is a light, vivid yellow. Relative luminance 0.552; OKLCH L 81.6% C 0.139 H 105.9°. Best body text is #000000 at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#CFC852
RGBrgb(207, 200, 82)
HSLhsl(57, 57%, 57%)
HSVhsv(57, 60%, 81%)
CMYKcmyk(0%, 3.4%, 60.4%, 18.8%)
CIE-LABlab(79.15, -12.19, 58.27)
CIE-LCHlch(79.15, 59.53, 101.82°)
OKLaboklab(81.6% -0.038 0.1334)
OKLCHoklch(81.6% 0.139 105.9)
XYZxyz(47.9110, 55.1847, 16.1090)
Luminance0.5518 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC852 #5259CF
analogous
#CF8A52 #CFC852 #98CF52
triadic
#CFC852 #52CFC8 #C852CF
tetradic
#CFC852 #52CF8A #5259CF #CF5298
square
#CFC852 #52CF8A #5259CF #CF5298
split-complementary
#CFC852 #5298CF #8A52CF
monochromatic
#827D24 #B2AB31 #CFC852 #DCD782 #EAE6B2

Accessibility & contrast

On white

1.74
#CFC852 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.04
#CFC852 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC852
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC852#FFFFFF#000000##000000
##CFC8521.001.7412.0412.04
#FFFFFF1.741.0021.0021.00
#00000012.0421.001.001.00
##00000012.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C144
Deuteranopia (green-blind)
#DBC659
Tritanopia (blue-blind)
#DDBCAF
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #cfc852;
/* rgb */ color: rgb(207, 200, 82);
/* oklch */ color: oklch(81.6% 0.139 105.9);
Tailwind
colors: {
  custom: {
    50: '#e0d887',
    500: '#cfc852',
    950: '#000000',
  },
}
SCSS
$custom: #cfc852;
$custom-light: #e0d887;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc852",
  "rgb": {
    "r": 207,
    "g": 200,
    "b": 82
  },
  "hsl": {
    "h": 56.64,
    "s": 56.561,
    "l": 56.667
  },
  "oklch": {
    "l": 0.81603,
    "c": 0.13873,
    "h": 105.9
  },
  "luminance": 0.55183
}

Semantic roles & 50–950 ramp

primary
#CFC852
secondary
#3C408A
accent
#50E048
background
#FEFEFC
surface
#FCFBF3
border
#D5D4CD
text
#16140C
muted
#84837F

Preview Lab

Preview with #CFC852

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

Preview Lab → · Contrast checker → · Palette generator →

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