#BAB131#BAB131

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

Color values

HEX#BAB131
RGBrgb(186, 177, 49)
HSLhsl(56, 58%, 46%)
HSVhsv(56, 74%, 73%)
CMYKcmyk(0%, 4.8%, 73.7%, 27.1%)
CIE-LABlab(70.94, -11.24, 62.43)
CIE-LCHlch(70.94, 63.44, 100.20°)
OKLaboklab(74.57% -0.0375 0.1375)
OKLCHoklch(74.57% 0.143 105.3)
XYZxyz(36.5277, 42.1065, 9.1084)
Luminance0.4210 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB131 #313ABA
analogous
#BA6C31 #BAB131 #7EBA31
triadic
#BAB131 #31BAB1 #B131BA
tetradic
#BAB131 #31BA6C #313ABA #BA317E
square
#BAB131 #31BA6C #313ABA #BA317E
split-complementary
#BAB131 #317EBA #6C31BA
monochromatic
#595517 #8A8324 #BAB131 #D2CA56 #DFD986

Accessibility & contrast

On white

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

On black

9.42
#BAB131 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB131
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB131#FFFFFF#000000##000000
##BAB1311.002.239.429.42
#FFFFFF2.231.0021.0021.00
#0000009.4221.001.001.00
##0000009.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AB18
Deuteranopia (green-blind)
#C4B03A
Tritanopia (blue-blind)
#C8A598
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #bab131;
/* rgb */ color: rgb(186, 177, 49);
/* oklch */ color: oklch(74.6% 0.143 105.3);
Tailwind
colors: {
  custom: {
    50: '#d2c873',
    500: '#bab131',
    950: '#000000',
  },
}
SCSS
$custom: #bab131;
$custom-light: #d2c873;
$custom-dark: #000000;
JSON
{
  "hex": "#bab131",
  "rgb": {
    "r": 186,
    "g": 177,
    "b": 49
  },
  "hsl": {
    "h": 56.058,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.74567,
    "c": 0.14256,
    "h": 105.3
  },
  "luminance": 0.42105
}

Semantic roles & 50–950 ramp

primary
#BAB131
secondary
#7E83C9
accent
#50E246
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151308
muted
#83827B

Preview Lab

Preview with #BAB131

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

Preview Lab → · Contrast checker → · Palette generator →

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