#BAB135#BAB135

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

Color values

HEX#BAB135
RGBrgb(186, 177, 53)
HSLhsl(56, 56%, 47%)
HSVhsv(56, 72%, 73%)
CMYKcmyk(0%, 4.8%, 71.5%, 27.1%)
CIE-LABlab(70.97, -11.05, 61.01)
CIE-LCHlch(70.97, 62.01, 100.27°)
OKLaboklab(74.59% -0.0366 0.1353)
OKLCHoklch(74.59% 0.14 105.1)
XYZxyz(36.6159, 42.1418, 9.5729)
Luminance0.4214 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB135 #353EBA
analogous
#BA6F35 #BAB135 #81BA35
triadic
#BAB135 #35BAB1 #B135BA
tetradic
#BAB135 #35BA6F #353EBA #BA3581
square
#BAB135 #35BA6F #353EBA #BA3581
split-complementary
#BAB135 #3581BA #6F35BA
monochromatic
#5B561A #8A8427 #BAB135 #D0C95C #DED88B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BAB135#FFFFFF#000000##000000
##BAB1351.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)
#C1AB20
Deuteranopia (green-blind)
#C4B03E
Tritanopia (blue-blind)
#C8A599
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #bab135;
/* rgb */ color: rgb(186, 177, 53);
/* oklch */ color: oklch(74.6% 0.140 105.1);
Tailwind
colors: {
  custom: {
    50: '#d2c875',
    500: '#bab135',
    950: '#000000',
  },
}
SCSS
$custom: #bab135;
$custom-light: #d2c875;
$custom-dark: #000000;
JSON
{
  "hex": "#bab135",
  "rgb": {
    "r": 186,
    "g": 177,
    "b": 53
  },
  "hsl": {
    "h": 55.94,
    "s": 55.649,
    "l": 46.863
  },
  "oklch": {
    "l": 0.74594,
    "c": 0.14013,
    "h": 105.1
  },
  "luminance": 0.4214
}

Semantic roles & 50–950 ramp

primary
#BAB135
secondary
#8287C8
accent
#53DF49
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151309
muted
#83827B

Preview Lab

Preview with #BAB135

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

Preview Lab → · Contrast checker → · Palette generator →

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