#CFD252#CFD252

#CFD252 is a very light, vivid yellow. Relative luminance 0.600; OKLCH L 83.7% C 0.149 H 110.5°. Best body text is #000000 at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#CFD252
RGBrgb(207, 210, 82)
HSLhsl(61, 59%, 57%)
HSVhsv(61, 61%, 82%)
CMYKcmyk(1.4%, 0%, 61%, 17.6%)
CIE-LABlab(81.82, -17.20, 61.16)
CIE-LCHlch(81.82, 63.53, 105.71°)
OKLaboklab(83.74% -0.0522 0.1396)
OKLCHoklch(83.74% 0.149 110.5)
XYZxyz(50.3032, 59.9690, 16.9063)
Luminance0.5997 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFD252 #5552D2
analogous
#D29552 #CFD252 #8FD252
triadic
#CFD252 #52CFD2 #D252CF
tetradic
#CFD252 #52D295 #5552D2 #D2528F
square
#CFD252 #52D295 #5552D2 #D2528F
split-complementary
#CFD252 #528FD2 #9552D2
monochromatic
#848723 #B4B730 #CFD252 #DCDF83 #EAEBB3

Accessibility & contrast

On white

1.62
#CFD252 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.99
#CFD252 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFD252
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFD252#FFFFFF#000000##000000
##CFD2521.001.6212.9912.99
#FFFFFF1.621.0021.0021.00
#00000012.9921.001.001.00
##00000012.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#E1C943
Deuteranopia (green-blind)
#E3CD5A
Tritanopia (blue-blind)
#DCC6B7
Achromatopsia (no color)
#CBCBCB

Design tokens & code

CSS
--color: #cfd252;
/* rgb */ color: rgb(207, 210, 82);
/* oklch */ color: oklch(83.7% 0.149 110.5);
Tailwind
colors: {
  custom: {
    50: '#e1df88',
    500: '#cfd252',
    950: '#000000',
  },
}
SCSS
$custom: #cfd252;
$custom-light: #e1df88;
$custom-dark: #000000;
JSON
{
  "hex": "#cfd252",
  "rgb": {
    "r": 207,
    "g": 210,
    "b": 82
  },
  "hsl": {
    "h": 61.406,
    "s": 58.716,
    "l": 57.255
  },
  "oklch": {
    "l": 0.83735,
    "c": 0.149,
    "h": 110.5
  },
  "luminance": 0.59968
}

Semantic roles & 50–950 ramp

primary
#CFD252
secondary
#3D3B8D
accent
#46E24A
background
#FEFEFC
surface
#FCFCF4
border
#D5D5CE
text
#16150C
muted
#84847F

Preview Lab

Preview with #CFD252

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

Preview Lab → · Contrast checker → · Palette generator →

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