#CFCA39#CFCA39

#CFCA39 is a light, vivid yellow. Relative luminance 0.558; OKLCH L 81.8% C 0.158 H 107.4°. Best body text is #000000 at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#CFCA39
RGBrgb(207, 202, 57)
HSLhsl(58, 61%, 52%)
HSVhsv(58, 72%, 81%)
CMYKcmyk(0%, 2.4%, 72.5%, 18.8%)
CIE-LABlab(79.50, -14.60, 68.41)
CIE-LCHlch(79.50, 69.95, 102.05°)
OKLaboklab(81.83% -0.0474 0.1509)
OKLCHoklch(81.83% 0.158 107.4)
XYZxyz(47.5930, 55.8035, 12.1343)
Luminance0.5580 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFCA39 #393ECF
analogous
#CF7F39 #CFCA39 #89CF39
triadic
#CFCA39 #39CFCA #CA39CF
tetradic
#CFCA39 #39CF7F #393ECF #CF3989
square
#CFCA39 #39CF7F #393ECF #CF3989
split-complementary
#CFCA39 #3989CF #7F39CF
monochromatic
#726F1C #A39F28 #CFCA39 #DBD76A #E7E49C

Accessibility & contrast

On white

1.73
#CFCA39 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.16
#CFCA39 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFCA39
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFCA39#FFFFFF#000000##000000
##CFCA391.001.7312.1612.16
#FFFFFF1.731.0021.0021.00
#00000012.1621.001.001.00
##00000012.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#DBC21D
Deuteranopia (green-blind)
#DEC744
Tritanopia (blue-blind)
#DEBDAE
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cfca39;
/* rgb */ color: rgb(207, 202, 57);
/* oklch */ color: oklch(81.8% 0.158 107.4);
Tailwind
colors: {
  custom: {
    50: '#e1d97a',
    500: '#cfca39',
    950: '#000000',
  },
}
SCSS
$custom: #cfca39;
$custom-light: #e1d97a;
$custom-dark: #000000;
JSON
{
  "hex": "#cfca39",
  "rgb": {
    "r": 207,
    "g": 202,
    "b": 57
  },
  "hsl": {
    "h": 58,
    "s": 60.976,
    "l": 51.765
  },
  "oklch": {
    "l": 0.81828,
    "c": 0.15815,
    "h": 107.4
  },
  "luminance": 0.55802
}

Semantic roles & 50–950 ramp

primary
#CFCA39
secondary
#31347B
accent
#49E444
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CFCA39

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

Preview Lab → · Contrast checker → · Palette generator →

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