#CFCC51#CFCC51

#CFCC51 is a very light, vivid yellow. Relative luminance 0.570; OKLCH L 82.4% C 0.144 H 107.8°. Best body text is #000000 at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#CFCC51
RGBrgb(207, 204, 81)
HSLhsl(59, 57%, 56%)
HSVhsv(59, 61%, 81%)
CMYKcmyk(0%, 1.4%, 60.9%, 18.8%)
CIE-LABlab(80.21, -14.28, 59.84)
CIE-LCHlch(80.21, 61.52, 103.42°)
OKLaboklab(82.44% -0.044 0.1366)
OKLCHoklch(82.44% 0.144 107.8)
XYZxyz(48.8118, 57.0467, 16.2229)
Luminance0.5705 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFCC51 #5154CF
analogous
#CF8D51 #CFCC51 #93CF51
triadic
#CFCC51 #51CFCC #CC51CF
tetradic
#CFCC51 #51CF8D #5154CF #CF5193
square
#CFCC51 #51CF8D #5154CF #CF5193
split-complementary
#CFCC51 #5193CF #8D51CF
monochromatic
#828024 #B2AF31 #CFCC51 #DCDA81 #E9E8B1

Accessibility & contrast

On white

1.69
#CFCC51 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.41
#CFCC51 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFCC51
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFCC51#FFFFFF#000000##000000
##CFCC511.001.6912.4112.41
#FFFFFF1.691.0021.0021.00
#00000012.4121.001.001.00
##00000012.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#DCC442
Deuteranopia (green-blind)
#DEC958
Tritanopia (blue-blind)
#DDC0B2
Achromatopsia (no color)
#C7C7C7

Design tokens & code

CSS
--color: #cfcc51;
/* rgb */ color: rgb(207, 204, 81);
/* oklch */ color: oklch(82.4% 0.144 107.8);
Tailwind
colors: {
  custom: {
    50: '#e1db87',
    500: '#cfcc51',
    950: '#000000',
  },
}
SCSS
$custom: #cfcc51;
$custom-light: #e1db87;
$custom-dark: #000000;
JSON
{
  "hex": "#cfcc51",
  "rgb": {
    "r": 207,
    "g": 204,
    "b": 81
  },
  "hsl": {
    "h": 58.571,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.82443,
    "c": 0.14355,
    "h": 107.8
  },
  "luminance": 0.57045
}

Semantic roles & 50–950 ramp

primary
#CFCC51
secondary
#3B3D89
accent
#4BE048
background
#FEFEFC
surface
#FCFBF3
border
#D5D4CD
text
#16140C
muted
#84837F

Preview Lab

Preview with #CFCC51

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

Preview Lab → · Contrast checker → · Palette generator →

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