#BAB333#BAB333

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

Color values

HEX#BAB333
RGBrgb(186, 179, 51)
HSLhsl(57, 57%, 46%)
HSVhsv(57, 73%, 73%)
CMYKcmyk(0%, 3.8%, 72.6%, 27.1%)
CIE-LABlab(71.50, -12.18, 62.26)
CIE-LCHlch(71.50, 63.44, 101.07°)
OKLaboklab(75.01% -0.04 0.1375)
OKLCHoklch(75.01% 0.143 106.2)
XYZxyz(36.9688, 42.9197, 9.4683)
Luminance0.4292 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB333 #333ABA
analogous
#BA7033 #BAB333 #7EBA33
triadic
#BAB333 #33BAB3 #B333BA
tetradic
#BAB333 #33BA70 #333ABA #BA337E
square
#BAB333 #33BA70 #333ABA #BA337E
split-complementary
#BAB333 #337EBA #7033BA
monochromatic
#5A5719 #8A8526 #BAB333 #D1CB59 #DFDA89

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BAB333#FFFFFF#000000##000000
##BAB3331.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)
#C2AC1B
Deuteranopia (green-blind)
#C5B13C
Tritanopia (blue-blind)
#C8A79A
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #bab333;
/* rgb */ color: rgb(186, 179, 51);
/* oklch */ color: oklch(75.0% 0.143 106.2);
Tailwind
colors: {
  custom: {
    50: '#d2c974',
    500: '#bab333',
    950: '#000000',
  },
}
SCSS
$custom: #bab333;
$custom-light: #d2c974;
$custom-dark: #000000;
JSON
{
  "hex": "#bab333",
  "rgb": {
    "r": 186,
    "g": 179,
    "b": 51
  },
  "hsl": {
    "h": 56.889,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.75014,
    "c": 0.14322,
    "h": 106.2
  },
  "luminance": 0.42918
}

Semantic roles & 50–950 ramp

primary
#BAB333
secondary
#8084C9
accent
#4FE048
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151309
muted
#83827B

Preview Lab

Preview with #BAB333

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

Preview Lab → · Contrast checker → · Palette generator →

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