#BAB138#BAB138

#BAB138 is a light, vivid yellow. Relative luminance 0.422; OKLCH L 74.6% C 0.138 H 105.1°. Best body text is #000000 at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#BAB138
RGBrgb(186, 177, 56)
HSLhsl(56, 54%, 47%)
HSVhsv(56, 70%, 73%)
CMYKcmyk(0%, 4.8%, 69.9%, 27.1%)
CIE-LABlab(70.99, -10.90, 59.90)
CIE-LCHlch(70.99, 60.88, 100.31°)
OKLaboklab(74.62% -0.0359 0.1334)
OKLCHoklch(74.62% 0.138 105.1)
XYZxyz(36.6871, 42.1703, 9.9478)
Luminance0.4217 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB138 #3841BA
analogous
#BA7038 #BAB138 #82BA38
triadic
#BAB138 #38BAB1 #B138BA
tetradic
#BAB138 #38BA70 #3841BA #BA3882
square
#BAB138 #38BA70 #3841BA #BA3882
split-complementary
#BAB138 #3882BA #7038BA
monochromatic
#5C571C #8B842A #BAB138 #CFC760 #DDD88F

Accessibility & contrast

On white

2.23
#BAB138 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.43
#BAB138 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB138
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB138#FFFFFF#000000##000000
##BAB1381.002.239.439.43
#FFFFFF2.231.0021.0021.00
#0000009.4321.001.001.00
##0000009.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0AB25
Deuteranopia (green-blind)
#C4B040
Tritanopia (blue-blind)
#C8A599
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #bab138;
/* rgb */ color: rgb(186, 177, 56);
/* oklch */ color: oklch(74.6% 0.138 105.1);
Tailwind
colors: {
  custom: {
    50: '#d2c876',
    500: '#bab138',
    950: '#000000',
  },
}
SCSS
$custom: #bab138;
$custom-light: #d2c876;
$custom-dark: #000000;
JSON
{
  "hex": "#bab138",
  "rgb": {
    "r": 186,
    "g": 177,
    "b": 56
  },
  "hsl": {
    "h": 55.846,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.74616,
    "c": 0.13818,
    "h": 105.1
  },
  "luminance": 0.42169
}

Semantic roles & 50–950 ramp

primary
#BAB138
secondary
#868AC8
accent
#55DD4B
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151309
muted
#83827B

Preview Lab

Preview with #BAB138

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

Preview Lab → · Contrast checker → · Palette generator →

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