#CFC152#CFC152

#CFC152 is a light, vivid yellow. Relative luminance 0.520; OKLCH L 80.1% C 0.132 H 102.2°. Best body text is #000000 at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#CFC152
RGBrgb(207, 193, 82)
HSLhsl(53, 57%, 57%)
HSVhsv(53, 60%, 81%)
CMYKcmyk(0%, 6.8%, 60.4%, 18.8%)
CIE-LABlab(77.29, -8.62, 56.24)
CIE-LCHlch(77.29, 56.89, 98.72°)
OKLaboklab(80.13% -0.0278 0.1291)
OKLCHoklch(80.13% 0.132 102.2)
XYZxyz(46.3268, 52.0163, 15.5809)
Luminance0.5202 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC152 #5260CF
analogous
#CF8352 #CFC152 #9FCF52
triadic
#CFC152 #52CFC1 #C152CF
tetradic
#CFC152 #52CF83 #5260CF #CF529F
square
#CFC152 #52CF83 #5260CF #CF529F
split-complementary
#CFC152 #529FCF #8352CF
monochromatic
#827824 #B2A431 #CFC152 #DCD282 #EAE3B2

Accessibility & contrast

On white

1.84
#CFC152 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.40
#CFC152 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC152
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC152#FFFFFF#000000##000000
##CFC1521.001.8411.4011.40
#FFFFFF1.841.0021.0021.00
#00000011.4021.001.001.00
##00000011.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BB46
Deuteranopia (green-blind)
#D6C258
Tritanopia (blue-blind)
#DEB5A9
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #cfc152;
/* rgb */ color: rgb(207, 193, 82);
/* oklch */ color: oklch(80.1% 0.132 102.2);
Tailwind
colors: {
  custom: {
    50: '#e0d387',
    500: '#cfc152',
    950: '#000000',
  },
}
SCSS
$custom: #cfc152;
$custom-light: #e0d387;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc152",
  "rgb": {
    "r": 207,
    "g": 193,
    "b": 82
  },
  "hsl": {
    "h": 53.28,
    "s": 56.561,
    "l": 56.667
  },
  "oklch": {
    "l": 0.80127,
    "c": 0.13207,
    "h": 102.2
  },
  "luminance": 0.52015
}

Semantic roles & 50–950 ramp

primary
#CFC152
secondary
#3C448A
accent
#59E048
background
#FEFEFC
surface
#FCFBF3
border
#D5D4CD
text
#16140C
muted
#84837F

Preview Lab

Preview with #CFC152

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

Preview Lab → · Contrast checker → · Palette generator →

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