#CFCA51#CFCA51

#CFCA51 is a very light, vivid yellow. Relative luminance 0.561; OKLCH L 82.0% C 0.142 H 106.9°. Best body text is #000000 at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#CFCA51
RGBrgb(207, 202, 81)
HSLhsl(58, 57%, 56%)
HSVhsv(58, 61%, 81%)
CMYKcmyk(0%, 2.4%, 60.9%, 18.8%)
CIE-LABlab(79.67, -13.27, 59.27)
CIE-LCHlch(79.67, 60.74, 102.62°)
OKLaboklab(82.02% -0.0411 0.1354)
OKLCHoklch(82.02% 0.142 106.9)
XYZxyz(48.3395, 56.1021, 16.0654)
Luminance0.5610 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFCA51 #5156CF
analogous
#CF8B51 #CFCA51 #95CF51
triadic
#CFCA51 #51CFCA #CA51CF
tetradic
#CFCA51 #51CF8B #5156CF #CF5195
square
#CFCA51 #51CF8B #5156CF #CF5195
split-complementary
#CFCA51 #5195CF #8B51CF
monochromatic
#827E24 #B2AD31 #CFCA51 #DCD981 #E9E7B1

Accessibility & contrast

On white

1.72
#CFCA51 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.22
#CFCA51 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFCA51
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFCA51#FFFFFF#000000##000000
##CFCA511.001.7212.2212.22
#FFFFFF1.721.0021.0021.00
#00000012.2221.001.001.00
##00000012.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#DAC343
Deuteranopia (green-blind)
#DCC858
Tritanopia (blue-blind)
#DDBEB0
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cfca51;
/* rgb */ color: rgb(207, 202, 81);
/* oklch */ color: oklch(82.0% 0.142 106.9);
Tailwind
colors: {
  custom: {
    50: '#e1d987',
    500: '#cfca51',
    950: '#000000',
  },
}
SCSS
$custom: #cfca51;
$custom-light: #e1d987;
$custom-dark: #000000;
JSON
{
  "hex": "#cfca51",
  "rgb": {
    "r": 207,
    "g": 202,
    "b": 81
  },
  "hsl": {
    "h": 57.619,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.82018,
    "c": 0.14153,
    "h": 106.9
  },
  "luminance": 0.56101
}

Semantic roles & 50–950 ramp

primary
#CFCA51
secondary
#3B3E89
accent
#4EE048
background
#FEFEFC
surface
#FCFBF3
border
#D5D4CD
text
#16140C
muted
#84837F

Preview Lab

Preview with #CFCA51

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

Preview Lab → · Contrast checker → · Palette generator →

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