#BAB337#BAB337

#BAB337 is a light, vivid yellow. Relative luminance 0.430; OKLCH L 75.0% C 0.141 H 106.1°. Best body text is #000000 at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#BAB337
RGBrgb(186, 179, 55)
HSLhsl(57, 54%, 47%)
HSVhsv(57, 70%, 73%)
CMYKcmyk(0%, 3.8%, 70.4%, 27.1%)
CIE-LABlab(71.53, -11.98, 60.81)
CIE-LCHlch(71.53, 61.98, 101.15°)
OKLaboklab(75.04% -0.039 0.1352)
OKLCHoklch(75.04% 0.141 106.1)
XYZxyz(37.0608, 42.9565, 9.9529)
Luminance0.4295 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB337 #373EBA
analogous
#BA7237 #BAB337 #80BA37
triadic
#BAB337 #37BAB3 #B337BA
tetradic
#BAB337 #37BA72 #373EBA #BA3780
square
#BAB337 #37BA72 #373EBA #BA3780
split-complementary
#BAB337 #3780BA #7237BA
monochromatic
#5C581B #8B8629 #BAB337 #D0CA5F #DED98E

Accessibility & contrast

On white

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

On black

9.59
#BAB337 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB337
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB337#FFFFFF#000000##000000
##BAB3371.002.199.599.59
#FFFFFF2.191.0021.0021.00
#0000009.5921.001.001.00
##0000009.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AC23
Deuteranopia (green-blind)
#C5B240
Tritanopia (blue-blind)
#C8A79B
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #bab337;
/* rgb */ color: rgb(186, 179, 55);
/* oklch */ color: oklch(75.0% 0.141 106.1);
Tailwind
colors: {
  custom: {
    50: '#d2c976',
    500: '#bab337',
    950: '#000000',
  },
}
SCSS
$custom: #bab337;
$custom-light: #d2c976;
$custom-dark: #000000;
JSON
{
  "hex": "#bab337",
  "rgb": {
    "r": 186,
    "g": 179,
    "b": 55
  },
  "hsl": {
    "h": 56.794,
    "s": 54.357,
    "l": 47.255
  },
  "oklch": {
    "l": 0.75042,
    "c": 0.14071,
    "h": 106.1
  },
  "luminance": 0.42955
}

Semantic roles & 50–950 ramp

primary
#BAB337
secondary
#8588C8
accent
#52DE4A
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151309
muted
#83827B

Preview Lab

Preview with #BAB337

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

Preview Lab → · Contrast checker → · Palette generator →

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