#BAB342#BAB342

#BAB342 is a light, vivid yellow. Relative luminance 0.431; OKLCH L 75.1% C 0.133 H 105.8°. Best body text is #000000 at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#BAB342
RGBrgb(186, 179, 66)
HSLhsl(57, 48%, 49%)
HSVhsv(57, 65%, 73%)
CMYKcmyk(0%, 3.8%, 64.5%, 27.1%)
CIE-LABlab(71.61, -11.36, 56.51)
CIE-LCHlch(71.61, 57.64, 101.37°)
OKLaboklab(75.13% -0.0361 0.1279)
OKLCHoklch(75.13% 0.133 105.8)
XYZxyz(37.3545, 43.0739, 11.4996)
Luminance0.4307 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB342 #4249BA
analogous
#BA7742 #BAB342 #85BA42
triadic
#BAB342 #42BAB3 #B342BA
tetradic
#BAB342 #42BA77 #4249BA #BA4285
square
#BAB342 #42BA77 #4249BA #BA4285
split-complementary
#BAB342 #4285BA #7742BA
monochromatic
#605C22 #8D8832 #BAB342 #CBC66E #DBD89B

Accessibility & contrast

On white

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

On black

9.61
#BAB342 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB342
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB342#FFFFFF#000000##000000
##BAB3421.002.189.619.61
#FFFFFF2.181.0021.0021.00
#0000009.6121.001.001.00
##0000009.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AD33
Deuteranopia (green-blind)
#C5B249
Tritanopia (blue-blind)
#C7A89C
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #bab342;
/* rgb */ color: rgb(186, 179, 66);
/* oklch */ color: oklch(75.1% 0.133 105.8);
Tailwind
colors: {
  custom: {
    50: '#d2c97c',
    500: '#bab342',
    950: '#000000',
  },
}
SCSS
$custom: #bab342;
$custom-light: #d2c97c;
$custom-dark: #000000;
JSON
{
  "hex": "#bab342",
  "rgb": {
    "r": 186,
    "g": 179,
    "b": 66
  },
  "hsl": {
    "h": 56.5,
    "s": 47.619,
    "l": 49.412
  },
  "oklch": {
    "l": 0.75131,
    "c": 0.13293,
    "h": 105.8
  },
  "luminance": 0.43073
}

Semantic roles & 50–950 ramp

primary
#BAB342
secondary
#9093C8
accent
#58D751
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#14130A
muted
#83827C

Preview Lab

Preview with #BAB342

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

Preview Lab → · Contrast checker → · Palette generator →

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