#BABC21#BABC21

#BABC21 is a light, vivid yellow. Relative luminance 0.465; OKLCH L 76.9% C 0.161 H 110.4°. Best body text is #000000 at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#BABC21
RGBrgb(186, 188, 33)
HSLhsl(61, 70%, 43%)
HSVhsv(61, 82%, 74%)
CMYKcmyk(1.1%, 0%, 82.4%, 26.3%)
CIE-LABlab(73.88, -17.43, 69.86)
CIE-LCHlch(73.88, 72.00, 104.01°)
OKLaboklab(76.89% -0.0561 0.1505)
OKLCHoklch(76.89% 0.161 110.4)
XYZxyz(38.5089, 46.5165, 8.3886)
Luminance0.4652 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BABC21 #2321BC
analogous
#BC7021 #BABC21 #6CBC21
triadic
#BABC21 #21BABC #BC21BA
tetradic
#BABC21 #21BC70 #2321BC #BC216C
square
#BABC21 #21BC70 #2321BC #BC216C
split-complementary
#BABC21 #216CBC #7021BC
monochromatic
#53540F #868818 #BABC21 #DBDD3D #E5E671

Accessibility & contrast

On white

2.04
#BABC21 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.30
#BABC21 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BABC21
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BABC21#FFFFFF#000000##000000
##BABC211.002.0410.3010.30
#FFFFFF2.041.0021.0021.00
#00000010.3021.001.001.00
##00000010.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#CCB300
Deuteranopia (green-blind)
#CDB831
Tritanopia (blue-blind)
#C8B0A1
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #babc21;
/* rgb */ color: rgb(186, 188, 33);
/* oklch */ color: oklch(76.9% 0.161 110.4);
Tailwind
colors: {
  custom: {
    50: '#d3cf6d',
    500: '#babc21',
    950: '#000000',
  },
}
SCSS
$custom: #babc21;
$custom-light: #d3cf6d;
$custom-dark: #000000;
JSON
{
  "hex": "#babc21",
  "rgb": {
    "r": 186,
    "g": 188,
    "b": 33
  },
  "hsl": {
    "h": 60.774,
    "s": 70.136,
    "l": 43.333
  },
  "oklch": {
    "l": 0.76886,
    "c": 0.16062,
    "h": 110.4
  },
  "luminance": 0.46515
}

Semantic roles & 50–950 ramp

primary
#BABC21
secondary
#6D6CCD
accent
#3BED3D
background
#FDFCF7
surface
#FBF9ED
border
#D4D2C8
text
#151308
muted
#83827B

Preview Lab

Preview with #BABC21

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

Preview Lab → · Contrast checker → · Palette generator →

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