#BAB42B#BAB42B

#BAB42B is a light, vivid yellow. Relative luminance 0.433; OKLCH L 75.2% C 0.149 H 106.9°. Best body text is #000000 at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#BAB42B
RGBrgb(186, 180, 43)
HSLhsl(57, 62%, 45%)
HSVhsv(57, 77%, 73%)
CMYKcmyk(0%, 3.2%, 76.9%, 27.1%)
CIE-LABlab(71.73, -13.03, 65.16)
CIE-LCHlch(71.73, 66.45, 101.31°)
OKLaboklab(75.18% -0.0431 0.1422)
OKLCHoklch(75.18% 0.149 106.9)
XYZxyz(37.0085, 43.2574, 8.6851)
Luminance0.4326 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB42B #2B31BA
analogous
#BA6D2B #BAB42B #78BA2B
triadic
#BAB42B #2BBAB4 #B42BBA
tetradic
#BAB42B #2BBA6D #2B31BA #BA2B78
square
#BAB42B #2BBA6D #2B31BA #BA2B78
split-complementary
#BAB42B #2B78BA #6D2BBA
monochromatic
#575414 #888420 #BAB42B #D6D04C #E1DD7E

Accessibility & contrast

On white

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

On black

9.65
#BAB42B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB42B
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB42B#FFFFFF#000000##000000
##BAB42B1.002.189.659.65
#FFFFFF2.181.0021.0021.00
#0000009.6521.001.001.00
##0000009.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AD05
Deuteranopia (green-blind)
#C6B236
Tritanopia (blue-blind)
#C8A89A
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #bab42b;
/* rgb */ color: rgb(186, 180, 43);
/* oklch */ color: oklch(75.2% 0.149 106.9);
Tailwind
colors: {
  custom: {
    50: '#d3ca70',
    500: '#bab42b',
    950: '#000000',
  },
}
SCSS
$custom: #bab42b;
$custom-light: #d3ca70;
$custom-dark: #000000;
JSON
{
  "hex": "#bab42b",
  "rgb": {
    "r": 186,
    "g": 180,
    "b": 43
  },
  "hsl": {
    "h": 57.483,
    "s": 62.445,
    "l": 44.902
  },
  "oklch": {
    "l": 0.75182,
    "c": 0.14861,
    "h": 106.9
  },
  "luminance": 0.43256
}

Semantic roles & 50–950 ramp

primary
#BAB42B
secondary
#777BCA
accent
#49E642
background
#FDFCF7
surface
#FBF8ED
border
#D4D1C8
text
#151308
muted
#83827B

Preview Lab

Preview with #BAB42B

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

Preview Lab → · Contrast checker → · Palette generator →

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