#BAB536#BAB536

#BAB536 is a light, vivid yellow. Relative luminance 0.438; OKLCH L 75.5% C 0.143 H 107.1°. Best body text is #000000 at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#BAB536
RGBrgb(186, 181, 54)
HSLhsl(58, 55%, 47%)
HSVhsv(58, 71%, 73%)
CMYKcmyk(0%, 2.7%, 71%, 27.1%)
CIE-LABlab(72.06, -13.06, 61.71)
CIE-LCHlch(72.06, 63.08, 101.95°)
OKLaboklab(75.47% -0.0422 0.1369)
OKLCHoklch(75.47% 0.143 107.1)
XYZxyz(37.4409, 43.7545, 9.9625)
Luminance0.4375 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB536 #363BBA
analogous
#BA7336 #BAB536 #7DBA36
triadic
#BAB536 #36BAB5 #B536BA
tetradic
#BAB536 #36BA73 #363BBA #BA367D
square
#BAB536 #36BA73 #363BBA #BA367D
split-complementary
#BAB536 #367DBA #7336BA
monochromatic
#5B591A #8B8728 #BAB536 #D0CC5D #DEDB8D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BAB536#FFFFFF#000000##000000
##BAB5361.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)
#C4AE20
Deuteranopia (green-blind)
#C7B33F
Tritanopia (blue-blind)
#C8A99C
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #bab536;
/* rgb */ color: rgb(186, 181, 54);
/* oklch */ color: oklch(75.5% 0.143 107.1);
Tailwind
colors: {
  custom: {
    50: '#d2ca75',
    500: '#bab536',
    950: '#000000',
  },
}
SCSS
$custom: #bab536;
$custom-light: #d2ca75;
$custom-dark: #000000;
JSON
{
  "hex": "#bab536",
  "rgb": {
    "r": 186,
    "g": 181,
    "b": 54
  },
  "hsl": {
    "h": 57.727,
    "s": 55,
    "l": 47.059
  },
  "oklch": {
    "l": 0.75469,
    "c": 0.14326,
    "h": 107.1
  },
  "luminance": 0.43753
}

Semantic roles & 50–950 ramp

primary
#BAB536
secondary
#8486C8
accent
#4FDE49
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151309
muted
#83827B

Preview Lab

Preview with #BAB536

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

Preview Lab → · Contrast checker → · Palette generator →

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