#BAB931#BAB931

#BAB931 is a light, vivid yellow. Relative luminance 0.454; OKLCH L 76.3% C 0.150 H 109.1°. Best body text is #000000 at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#BAB931
RGBrgb(186, 185, 49)
HSLhsl(60, 58%, 46%)
HSVhsv(60, 74%, 73%)
CMYKcmyk(0%, 0.5%, 73.7%, 27.1%)
CIE-LABlab(73.13, -15.33, 64.50)
CIE-LCHlch(73.13, 66.30, 103.37°)
OKLaboklab(76.31% -0.049 0.1419)
OKLCHoklch(76.31% 0.15 109.1)
XYZxyz(38.1545, 45.3600, 9.6506)
Luminance0.4536 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB931 #3132BA
analogous
#BA7431 #BAB931 #76BA31
triadic
#BAB931 #31BAB9 #B931BA
tetradic
#BAB931 #31BA74 #3132BA #BA3176
square
#BAB931 #31BA74 #3132BA #BA3176
split-complementary
#BAB931 #3176BA #7431BA
monochromatic
#595917 #8A8924 #BAB931 #D2D256 #DFDF86

Accessibility & contrast

On white

2.09
#BAB931 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.07
#BAB931 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB931
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB931#FFFFFF#000000##000000
##BAB9311.002.0910.0710.07
#FFFFFF2.091.0021.0021.00
#00000010.0721.001.001.00
##00000010.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C8B114
Deuteranopia (green-blind)
#CAB63C
Tritanopia (blue-blind)
#C7AD9F
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #bab931;
/* rgb */ color: rgb(186, 185, 49);
/* oklch */ color: oklch(76.3% 0.150 109.1);
Tailwind
colors: {
  custom: {
    50: '#d2cd73',
    500: '#bab931',
    950: '#000000',
  },
}
SCSS
$custom: #bab931;
$custom-light: #d2cd73;
$custom-dark: #000000;
JSON
{
  "hex": "#bab931",
  "rgb": {
    "r": 186,
    "g": 185,
    "b": 49
  },
  "hsl": {
    "h": 59.562,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.76309,
    "c": 0.15014,
    "h": 109.1
  },
  "luminance": 0.45359
}

Semantic roles & 50–950 ramp

primary
#BAB931
secondary
#7E7FC9
accent
#47E246
background
#FDFCF7
surface
#FAF9ED
border
#D3D2C8
text
#151309
muted
#83827B

Preview Lab

Preview with #BAB931

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

Preview Lab → · Contrast checker → · Palette generator →

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