#CFCA42#CFCA42

#CFCA42 is a light, vivid yellow. Relative luminance 0.559; OKLCH L 81.9% C 0.153 H 107.3°. Best body text is #000000 at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#CFCA42
RGBrgb(207, 202, 66)
HSLhsl(58, 59%, 54%)
HSVhsv(58, 68%, 81%)
CMYKcmyk(0%, 2.4%, 68.1%, 18.8%)
CIE-LABlab(79.56, -14.16, 65.21)
CIE-LCHlch(79.56, 66.74, 102.25°)
OKLaboklab(81.89% -0.0452 0.1457)
OKLCHoklch(81.89% 0.153 107.3)
XYZxyz(47.8378, 55.9014, 13.4233)
Luminance0.5590 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFCA42 #4247CF
analogous
#CF8342 #CFCA42 #8DCF42
triadic
#CFCA42 #42CFCA #CA42CF
tetradic
#CFCA42 #42CF83 #4247CF #CF428D
square
#CFCA42 #42CF83 #4247CF #CF428D
split-complementary
#CFCA42 #428DCF #8342CF
monochromatic
#78751F #A9A42B #CFCA42 #DBD873 #E8E5A4

Accessibility & contrast

On white

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

On black

12.18
#CFCA42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFCA42
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFCA42#FFFFFF#000000##000000
##CFCA421.001.7212.1812.18
#FFFFFF1.721.0021.0021.00
#00000012.1821.001.001.00
##00000012.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#DBC22D
Deuteranopia (green-blind)
#DDC84B
Tritanopia (blue-blind)
#DEBDAF
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cfca42;
/* rgb */ color: rgb(207, 202, 66);
/* oklch */ color: oklch(81.9% 0.153 107.3);
Tailwind
colors: {
  custom: {
    50: '#e1d97e',
    500: '#cfca42',
    950: '#000000',
  },
}
SCSS
$custom: #cfca42;
$custom-light: #e1d97e;
$custom-dark: #000000;
JSON
{
  "hex": "#cfca42",
  "rgb": {
    "r": 207,
    "g": 202,
    "b": 66
  },
  "hsl": {
    "h": 57.872,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.8189,
    "c": 0.15256,
    "h": 107.3
  },
  "luminance": 0.559
}

Semantic roles & 50–950 ramp

primary
#CFCA42
secondary
#353880
accent
#4BE345
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CFCA42

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

Preview Lab → · Contrast checker → · Palette generator →

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