#BAB533#BAB533

#BAB533 is a light, vivid yellow. Relative luminance 0.437; OKLCH L 75.4% C 0.145 H 107.2°. Best body text is #000000 at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#BAB533
RGBrgb(186, 181, 51)
HSLhsl(58, 57%, 46%)
HSVhsv(58, 73%, 73%)
CMYKcmyk(0%, 2.7%, 72.6%, 27.1%)
CIE-LABlab(72.05, -13.20, 62.78)
CIE-LCHlch(72.05, 64.15, 101.88°)
OKLaboklab(75.45% -0.0429 0.1386)
OKLCHoklch(75.45% 0.145 107.2)
XYZxyz(37.3726, 43.7272, 9.6029)
Luminance0.4373 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB533 #3338BA
analogous
#BA7233 #BAB533 #7CBA33
triadic
#BAB533 #33BAB5 #B533BA
tetradic
#BAB533 #33BA72 #3338BA #BA337C
square
#BAB533 #33BA72 #3338BA #BA337C
split-complementary
#BAB533 #337CBA #7233BA
monochromatic
#5A5819 #8A8626 #BAB533 #D1CD59 #DFDB89

Accessibility & contrast

On white

2.15
#BAB533 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.75
#BAB533 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB533
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB533#FFFFFF#000000##000000
##BAB5331.002.159.759.75
#FFFFFF2.151.0021.0021.00
#0000009.7521.001.001.00
##0000009.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AE1B
Deuteranopia (green-blind)
#C7B33D
Tritanopia (blue-blind)
#C8A99C
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #bab533;
/* rgb */ color: rgb(186, 181, 51);
/* oklch */ color: oklch(75.4% 0.145 107.2);
Tailwind
colors: {
  custom: {
    50: '#d2ca74',
    500: '#bab533',
    950: '#000000',
  },
}
SCSS
$custom: #bab533;
$custom-light: #d2ca74;
$custom-dark: #000000;
JSON
{
  "hex": "#bab533",
  "rgb": {
    "r": 186,
    "g": 181,
    "b": 51
  },
  "hsl": {
    "h": 57.778,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.75448,
    "c": 0.14511,
    "h": 107.2
  },
  "luminance": 0.43726
}

Semantic roles & 50–950 ramp

primary
#BAB533
secondary
#8083C9
accent
#4DE048
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151309
muted
#83827B

Preview Lab

Preview with #BAB533

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

Preview Lab → · Contrast checker → · Palette generator →

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