#BAB336#BAB336

#BAB336 is a light, vivid yellow. Relative luminance 0.429; 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#BAB336
RGBrgb(186, 179, 54)
HSLhsl(57, 55%, 47%)
HSVhsv(57, 71%, 73%)
CMYKcmyk(0%, 3.8%, 71%, 27.1%)
CIE-LABlab(71.52, -12.03, 61.18)
CIE-LCHlch(71.52, 62.35, 101.13°)
OKLaboklab(75.03% -0.0393 0.1358)
OKLCHoklch(75.03% 0.141 106.1)
XYZxyz(37.0371, 42.9470, 9.8280)
Luminance0.4295 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB336 #363DBA
analogous
#BA7136 #BAB336 #7FBA36
triadic
#BAB336 #36BAB3 #B336BA
tetradic
#BAB336 #36BA71 #363DBA #BA367F
square
#BAB336 #36BA71 #363DBA #BA367F
split-complementary
#BAB336 #367FBA #7136BA
monochromatic
#5B581A #8B8528 #BAB336 #D0CA5D #DED98D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BAB336#FFFFFF#000000##000000
##BAB3361.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)
#C2AC21
Deuteranopia (green-blind)
#C5B23F
Tritanopia (blue-blind)
#C8A79A
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #bab336;
/* rgb */ color: rgb(186, 179, 54);
/* oklch */ color: oklch(75.0% 0.141 106.1);
Tailwind
colors: {
  custom: {
    50: '#d2c975',
    500: '#bab336',
    950: '#000000',
  },
}
SCSS
$custom: #bab336;
$custom-light: #d2c975;
$custom-dark: #000000;
JSON
{
  "hex": "#bab336",
  "rgb": {
    "r": 186,
    "g": 179,
    "b": 54
  },
  "hsl": {
    "h": 56.818,
    "s": 55,
    "l": 47.059
  },
  "oklch": {
    "l": 0.75034,
    "c": 0.14136,
    "h": 106.1
  },
  "luminance": 0.42946
}

Semantic roles & 50–950 ramp

primary
#BAB336
secondary
#8487C8
accent
#51DE49
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151309
muted
#83827B

Preview Lab

Preview with #BAB336

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

Preview Lab → · Contrast checker → · Palette generator →

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