#BAB421#BAB421

#BAB421 is a light, vivid yellow. Relative luminance 0.432; OKLCH L 75.1% C 0.153 H 107.0°. Best body text is #000000 at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#BAB421
RGBrgb(186, 180, 33)
HSLhsl(58, 70%, 43%)
HSVhsv(58, 82%, 73%)
CMYKcmyk(0%, 3.2%, 82.3%, 27.1%)
CIE-LABlab(71.69, -13.38, 68.00)
CIE-LCHlch(71.69, 69.30, 101.13°)
OKLaboklab(75.13% -0.0449 0.1465)
OKLCHoklch(75.13% 0.153 107)
XYZxyz(36.8471, 43.1928, 7.8347)
Luminance0.4319 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB421 #2127BA
analogous
#BA6721 #BAB421 #73BA21
triadic
#BAB421 #21BAB4 #B421BA
tetradic
#BAB421 #21BA67 #2127BA #BA2173
square
#BAB421 #21BA67 #2127BA #BA2173
split-complementary
#BAB421 #2173BA #6721BA
monochromatic
#524F0F #868218 #BAB421 #DCD63C #E6E170

Accessibility & contrast

On white

2.18
#BAB421 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.64
#BAB421 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB421
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB421#FFFFFF#000000##000000
##BAB4211.002.189.649.64
#FFFFFF2.181.0021.0021.00
#0000009.6421.001.001.00
##0000009.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AD00
Deuteranopia (green-blind)
#C7B22F
Tritanopia (blue-blind)
#C8A79A
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #bab421;
/* rgb */ color: rgb(186, 180, 33);
/* oklch */ color: oklch(75.1% 0.153 107.0);
Tailwind
colors: {
  custom: {
    50: '#d3ca6c',
    500: '#bab421',
    950: '#000000',
  },
}
SCSS
$custom: #bab421;
$custom-light: #d3ca6c;
$custom-dark: #000000;
JSON
{
  "hex": "#bab421",
  "rgb": {
    "r": 186,
    "g": 180,
    "b": 33
  },
  "hsl": {
    "h": 57.647,
    "s": 69.863,
    "l": 42.941
  },
  "oklch": {
    "l": 0.75133,
    "c": 0.15317,
    "h": 107
  },
  "luminance": 0.43191
}

Semantic roles & 50–950 ramp

primary
#BAB421
secondary
#6B6FCC
accent
#42ED3B
background
#FDFCF6
surface
#FBF8EC
border
#D4D1C7
text
#151308
muted
#83827A

Preview Lab

Preview with #BAB421

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

Preview Lab → · Contrast checker → · Palette generator →

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