#BAB221#BAB221

#BAB221 is a light, vivid yellow. Relative luminance 0.424; OKLCH L 74.7% C 0.151 H 106.1°. Best body text is #000000 at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#BAB221
RGBrgb(186, 178, 33)
HSLhsl(57, 70%, 43%)
HSVhsv(57, 82%, 73%)
CMYKcmyk(0%, 4.3%, 82.3%, 27.1%)
CIE-LABlab(71.14, -12.35, 67.53)
CIE-LCHlch(71.14, 68.65, 100.36°)
OKLaboklab(74.7% -0.042 0.1454)
OKLCHoklch(74.7% 0.151 106.1)
XYZxyz(36.4462, 42.3911, 7.7010)
Luminance0.4239 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB221 #2129BA
analogous
#BA6621 #BAB221 #75BA21
triadic
#BAB221 #21BAB2 #B221BA
tetradic
#BAB221 #21BA66 #2129BA #BA2175
square
#BAB221 #21BA66 #2129BA #BA2175
split-complementary
#BAB221 #2175BA #6621BA
monochromatic
#524F0F #868018 #BAB221 #DCD43C #E6DF70

Accessibility & contrast

On white

2.22
#BAB221 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.48
#BAB221 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB221
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB221#FFFFFF#000000##000000
##BAB2211.002.229.489.48
#FFFFFF2.221.0021.0021.00
#0000009.4821.001.001.00
##0000009.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AB00
Deuteranopia (green-blind)
#C5B12F
Tritanopia (blue-blind)
#C8A598
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #bab221;
/* rgb */ color: rgb(186, 178, 33);
/* oklch */ color: oklch(74.7% 0.151 106.1);
Tailwind
colors: {
  custom: {
    50: '#d3c86c',
    500: '#bab221',
    950: '#000000',
  },
}
SCSS
$custom: #bab221;
$custom-light: #d3c86c;
$custom-dark: #000000;
JSON
{
  "hex": "#bab221",
  "rgb": {
    "r": 186,
    "g": 178,
    "b": 33
  },
  "hsl": {
    "h": 56.863,
    "s": 69.863,
    "l": 42.941
  },
  "oklch": {
    "l": 0.74698,
    "c": 0.15138,
    "h": 106.1
  },
  "luminance": 0.4239
}

Semantic roles & 50–950 ramp

primary
#BAB221
secondary
#6B70CC
accent
#44ED3B
background
#FDFCF6
surface
#FBF8EC
border
#D4D1C7
text
#151308
muted
#83827A

Preview Lab

Preview with #BAB221

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

Preview Lab → · Contrast checker → · Palette generator →

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