#BAB031#BAB031

#BAB031 is a light, vivid yellow. Relative luminance 0.417; OKLCH L 74.4% C 0.142 H 104.8°. Best body text is #000000 at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#BAB031
RGBrgb(186, 176, 49)
HSLhsl(56, 58%, 46%)
HSVhsv(56, 74%, 73%)
CMYKcmyk(0%, 5.4%, 73.7%, 27.1%)
CIE-LABlab(70.67, -10.72, 62.18)
CIE-LCHlch(70.67, 63.09, 99.78°)
OKLaboklab(74.35% -0.0361 0.137)
OKLCHoklch(74.35% 0.142 104.8)
XYZxyz(36.3310, 41.7129, 9.0428)
Luminance0.4171 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB031 #313BBA
analogous
#BA6B31 #BAB031 #7FBA31
triadic
#BAB031 #31BAB0 #B031BA
tetradic
#BAB031 #31BA6B #313BBA #BA317F
square
#BAB031 #31BA6B #313BBA #BA317F
split-complementary
#BAB031 #317FBA #6B31BA
monochromatic
#595417 #8A8224 #BAB031 #D2C956 #DFD986

Accessibility & contrast

On white

2.25
#BAB031 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.34
#BAB031 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB031
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB031#FFFFFF#000000##000000
##BAB0311.002.259.349.34
#FFFFFF2.251.0021.0021.00
#0000009.3421.001.001.00
##0000009.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0AA19
Deuteranopia (green-blind)
#C3AF3A
Tritanopia (blue-blind)
#C8A498
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #bab031;
/* rgb */ color: rgb(186, 176, 49);
/* oklch */ color: oklch(74.4% 0.142 104.8);
Tailwind
colors: {
  custom: {
    50: '#d2c772',
    500: '#bab031',
    950: '#000000',
  },
}
SCSS
$custom: #bab031;
$custom-light: #d2c772;
$custom-dark: #000000;
JSON
{
  "hex": "#bab031",
  "rgb": {
    "r": 186,
    "g": 176,
    "b": 49
  },
  "hsl": {
    "h": 55.62,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.74351,
    "c": 0.14166,
    "h": 104.8
  },
  "luminance": 0.41712
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BAB031

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

Preview Lab → · Contrast checker → · Palette generator →

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