#BABE21#BABE21

#BABE21 is a light, vivid yellow. Relative luminance 0.474; OKLCH L 77.3% C 0.163 H 111.2°. Best body text is #000000 at 10.48:1 contrast (WCAG AA passes).

Color values

HEX#BABE21
RGBrgb(186, 190, 33)
HSLhsl(62, 70%, 44%)
HSVhsv(62, 83%, 75%)
CMYKcmyk(2.1%, 0%, 82.6%, 25.5%)
CIE-LABlab(74.43, -18.43, 70.33)
CIE-LCHlch(74.43, 72.71, 104.69°)
OKLaboklab(77.33% -0.0589 0.1515)
OKLCHoklch(77.33% 0.163 111.2)
XYZxyz(38.9391, 47.3769, 8.5320)
Luminance0.4738 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BABE21 #2521BE
analogous
#BE7321 #BABE21 #6BBE21
triadic
#BABE21 #21BABE #BE21BA
tetradic
#BABE21 #21BE73 #2521BE #BE216B
square
#BABE21 #21BE73 #2521BE #BE216B
split-complementary
#BABE21 #216BBE #7321BE
monochromatic
#54560F #878A18 #BABE21 #DADE3F #E4E773

Accessibility & contrast

On white

2.00
#BABE21 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.48
#BABE21 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BABE21
10.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BABE21#FFFFFF#000000##000000
##BABE211.002.0010.4810.48
#FFFFFF2.001.0021.0021.00
#00000010.4821.001.001.00
##00000010.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#CDB500
Deuteranopia (green-blind)
#CEB931
Tritanopia (blue-blind)
#C7B2A2
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #babe21;
/* rgb */ color: rgb(186, 190, 33);
/* oklch */ color: oklch(77.3% 0.163 111.2);
Tailwind
colors: {
  custom: {
    50: '#d3d16d',
    500: '#babe21',
    950: '#000000',
  },
}
SCSS
$custom: #babe21;
$custom-light: #d3d16d;
$custom-dark: #000000;
JSON
{
  "hex": "#babe21",
  "rgb": {
    "r": 186,
    "g": 190,
    "b": 33
  },
  "hsl": {
    "h": 61.529,
    "s": 70.404,
    "l": 43.725
  },
  "oklch": {
    "l": 0.77326,
    "c": 0.16256,
    "h": 111.2
  },
  "luminance": 0.47376
}

Semantic roles & 50–950 ramp

primary
#BABE21
secondary
#706DCD
accent
#3BED3F
background
#FDFCF7
surface
#FBF9ED
border
#D4D2C8
text
#151408
muted
#83827B

Preview Lab

Preview with #BABE21

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

Preview Lab → · Contrast checker → · Palette generator →

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