#BAB332#BAB332

#BAB332 is a light, vivid yellow. Relative luminance 0.429; OKLCH L 75.0% C 0.144 H 106.2°. Best body text is #000000 at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#BAB332
RGBrgb(186, 179, 50)
HSLhsl(57, 58%, 46%)
HSVhsv(57, 73%, 73%)
CMYKcmyk(0%, 3.8%, 73.1%, 27.1%)
CIE-LABlab(71.49, -12.22, 62.61)
CIE-LCHlch(71.49, 63.79, 101.05°)
OKLaboklab(75.01% -0.0402 0.1381)
OKLCHoklch(75.01% 0.144 106.2)
XYZxyz(36.9470, 42.9109, 9.3534)
Luminance0.4291 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB332 #3239BA
analogous
#BA6F32 #BAB332 #7DBA32
triadic
#BAB332 #32BAB3 #B332BA
tetradic
#BAB332 #32BA6F #3239BA #BA327D
square
#BAB332 #32BA6F #3239BA #BA327D
split-complementary
#BAB332 #327DBA #6F32BA
monochromatic
#5A5618 #8A8525 #BAB332 #D2CC57 #DFDA88

Accessibility & contrast

On white

2.19
#BAB332 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.58
#BAB332 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB332
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB332#FFFFFF#000000##000000
##BAB3321.002.199.589.58
#FFFFFF2.191.0021.0021.00
#0000009.5821.001.001.00
##0000009.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AC19
Deuteranopia (green-blind)
#C5B13B
Tritanopia (blue-blind)
#C8A79A
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #bab332;
/* rgb */ color: rgb(186, 179, 50);
/* oklch */ color: oklch(75.0% 0.144 106.2);
Tailwind
colors: {
  custom: {
    50: '#d2c973',
    500: '#bab332',
    950: '#000000',
  },
}
SCSS
$custom: #bab332;
$custom-light: #d2c973;
$custom-dark: #000000;
JSON
{
  "hex": "#bab332",
  "rgb": {
    "r": 186,
    "g": 179,
    "b": 50
  },
  "hsl": {
    "h": 56.912,
    "s": 57.627,
    "l": 46.275
  },
  "oklch": {
    "l": 0.75007,
    "c": 0.14382,
    "h": 106.2
  },
  "luminance": 0.4291
}

Semantic roles & 50–950 ramp

primary
#BAB332
secondary
#7F83C9
accent
#4FE147
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151309
muted
#83827B

Preview Lab

Preview with #BAB332

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

Preview Lab → · Contrast checker → · Palette generator →

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