#CABE42#CABE42

#CABE42 is a light, vivid yellow. Relative luminance 0.498; OKLCH L 78.9% C 0.142 H 103.8°. Best body text is #000000 at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#CABE42
RGBrgb(202, 190, 66)
HSLhsl(55, 56%, 53%)
HSVhsv(55, 67%, 79%)
CMYKcmyk(0%, 5.9%, 67.3%, 20.8%)
CIE-LABlab(75.93, -10.19, 61.41)
CIE-LCHlch(75.93, 62.25, 99.42°)
OKLaboklab(78.9% -0.0337 0.1378)
OKLCHoklch(78.9% 0.142 103.8)
XYZxyz(43.7557, 49.7785, 12.4566)
Luminance0.4978 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CABE42 #424ECA
analogous
#CA7A42 #CABE42 #92CA42
triadic
#CABE42 #42CABE #BE42CA
tetradic
#CABE42 #42CA7A #424ECA #CA4292
square
#CABE42 #42CA7A #424ECA #CA4292
split-complementary
#CABE42 #4292CA #7A42CA
monochromatic
#726A20 #A2972D #CABE42 #D7CE72 #E5DFA2

Accessibility & contrast

On white

1.92
#CABE42 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.96
#CABE42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CABE42
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CABE42#FFFFFF#000000##000000
##CABE421.001.9210.9610.96
#FFFFFF1.921.0021.0021.00
#00000010.9621.001.001.00
##00000010.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#CFB831
Deuteranopia (green-blind)
#D2BE4A
Tritanopia (blue-blind)
#D9B1A5
Achromatopsia (no color)
#BBBBBB

Design tokens & code

CSS
--color: #cabe42;
/* rgb */ color: rgb(202, 190, 66);
/* oklch */ color: oklch(78.9% 0.142 103.8);
Tailwind
colors: {
  custom: {
    50: '#ddd17d',
    500: '#cabe42',
    950: '#000000',
  },
}
SCSS
$custom: #cabe42;
$custom-light: #ddd17d;
$custom-dark: #000000;
JSON
{
  "hex": "#cabe42",
  "rgb": {
    "r": 202,
    "g": 190,
    "b": 66
  },
  "hsl": {
    "h": 54.706,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.78903,
    "c": 0.14189,
    "h": 103.8
  },
  "luminance": 0.49777
}

Semantic roles & 50–950 ramp

primary
#CABE42
secondary
#969CD1
accent
#56DF48
background
#FEFCF7
surface
#FCF9EE
border
#D5D2C9
text
#16140A
muted
#84827C

Preview Lab

Preview with #CABE42

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

Preview Lab → · Contrast checker → · Palette generator →

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