#BAB422#BAB422

#BAB422 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#BAB422
RGBrgb(186, 180, 34)
HSLhsl(58, 69%, 43%)
HSVhsv(58, 82%, 73%)
CMYKcmyk(0%, 3.2%, 81.7%, 27.1%)
CIE-LABlab(71.69, -13.35, 67.74)
CIE-LCHlch(71.69, 69.04, 101.15°)
OKLaboklab(75.14% -0.0447 0.1461)
OKLCHoklch(75.14% 0.153 107)
XYZxyz(36.8613, 43.1985, 7.9095)
Luminance0.4320 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB422 #2228BA
analogous
#BA6822 #BAB422 #74BA22
triadic
#BAB422 #22BAB4 #B422BA
tetradic
#BAB422 #22BA68 #2228BA #BA2274
square
#BAB422 #22BA68 #2228BA #BA2274
split-complementary
#BAB422 #2274BA #6822BA
monochromatic
#53500F #868219 #BAB422 #DCD53E #E5E171

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BAB422#FFFFFF#000000##000000
##BAB4221.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)
#C7B230
Tritanopia (blue-blind)
#C8A79A
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #bab422;
/* rgb */ color: rgb(186, 180, 34);
/* oklch */ color: oklch(75.1% 0.153 107.0);
Tailwind
colors: {
  custom: {
    50: '#d3ca6c',
    500: '#bab422',
    950: '#000000',
  },
}
SCSS
$custom: #bab422;
$custom-light: #d3ca6c;
$custom-dark: #000000;
JSON
{
  "hex": "#bab422",
  "rgb": {
    "r": 186,
    "g": 180,
    "b": 34
  },
  "hsl": {
    "h": 57.632,
    "s": 69.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.75138,
    "c": 0.15277,
    "h": 107
  },
  "luminance": 0.43197
}

Semantic roles & 50–950 ramp

primary
#BAB422
secondary
#6C70CC
accent
#43EC3C
background
#FDFCF6
surface
#FBF8EC
border
#D4D1C7
text
#151308
muted
#83827A

Preview Lab

Preview with #BAB422

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

Preview Lab → · Contrast checker → · Palette generator →

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