#CFC252#CFC252

#CFC252 is a light, vivid yellow. Relative luminance 0.525; OKLCH L 80.3% C 0.133 H 102.7°. Best body text is #000000 at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#CFC252
RGBrgb(207, 194, 82)
HSLhsl(54, 57%, 57%)
HSVhsv(54, 60%, 81%)
CMYKcmyk(0%, 6.3%, 60.4%, 18.8%)
CIE-LABlab(77.56, -9.14, 56.53)
CIE-LCHlch(77.56, 57.26, 99.18°)
OKLaboklab(80.34% -0.0293 0.1297)
OKLCHoklch(80.34% 0.133 102.7)
XYZxyz(46.5486, 52.4599, 15.6548)
Luminance0.5246 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC252 #525FCF
analogous
#CF8452 #CFC252 #9ECF52
triadic
#CFC252 #52CFC2 #C252CF
tetradic
#CFC252 #52CF84 #525FCF #CF529E
square
#CFC252 #52CF84 #525FCF #CF529E
split-complementary
#CFC252 #529ECF #8452CF
monochromatic
#827924 #B2A531 #CFC252 #DCD382 #EAE4B2

Accessibility & contrast

On white

1.83
#CFC252 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.49
#CFC252 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC252
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC252#FFFFFF#000000##000000
##CFC2521.001.8311.4911.49
#FFFFFF1.831.0021.0021.00
#00000011.4921.001.001.00
##00000011.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BC46
Deuteranopia (green-blind)
#D6C258
Tritanopia (blue-blind)
#DEB6AA
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #cfc252;
/* rgb */ color: rgb(207, 194, 82);
/* oklch */ color: oklch(80.3% 0.133 102.7);
Tailwind
colors: {
  custom: {
    50: '#e0d487',
    500: '#cfc252',
    950: '#000000',
  },
}
SCSS
$custom: #cfc252;
$custom-light: #e0d487;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc252",
  "rgb": {
    "r": 207,
    "g": 194,
    "b": 82
  },
  "hsl": {
    "h": 53.76,
    "s": 56.561,
    "l": 56.667
  },
  "oklch": {
    "l": 0.80337,
    "c": 0.13299,
    "h": 102.7
  },
  "luminance": 0.52458
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CFC252

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

Preview Lab → · Contrast checker → · Palette generator →

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