#BAB431#BAB431

#BAB431 is a light, vivid yellow. Relative luminance 0.433; OKLCH L 75.2% C 0.145 H 106.7°. Best body text is #000000 at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#BAB431
RGBrgb(186, 180, 49)
HSLhsl(57, 58%, 46%)
HSVhsv(57, 74%, 73%)
CMYKcmyk(0%, 3.2%, 73.7%, 27.1%)
CIE-LABlab(71.76, -12.78, 63.21)
CIE-LCHlch(71.76, 64.49, 101.43°)
OKLaboklab(75.22% -0.0419 0.1392)
OKLCHoklch(75.22% 0.145 106.7)
XYZxyz(37.1268, 43.3047, 9.3081)
Luminance0.4330 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB431 #3137BA
analogous
#BA6F31 #BAB431 #7BBA31
triadic
#BAB431 #31BAB4 #B431BA
tetradic
#BAB431 #31BA6F #3137BA #BA317B
square
#BAB431 #31BA6F #3137BA #BA317B
split-complementary
#BAB431 #317BBA #6F31BA
monochromatic
#595617 #8A8524 #BAB431 #D2CD56 #DFDB86

Accessibility & contrast

On white

2.17
#BAB431 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.66
#BAB431 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB431
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB431#FFFFFF#000000##000000
##BAB4311.002.179.669.66
#FFFFFF2.171.0021.0021.00
#0000009.6621.001.001.00
##0000009.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AD17
Deuteranopia (green-blind)
#C6B23B
Tritanopia (blue-blind)
#C8A89B
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #bab431;
/* rgb */ color: rgb(186, 180, 49);
/* oklch */ color: oklch(75.2% 0.145 106.7);
Tailwind
colors: {
  custom: {
    50: '#d2ca73',
    500: '#bab431',
    950: '#000000',
  },
}
SCSS
$custom: #bab431;
$custom-light: #d2ca73;
$custom-dark: #000000;
JSON
{
  "hex": "#bab431",
  "rgb": {
    "r": 186,
    "g": 180,
    "b": 49
  },
  "hsl": {
    "h": 57.372,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.75218,
    "c": 0.14533,
    "h": 106.7
  },
  "luminance": 0.43303
}

Semantic roles & 50–950 ramp

primary
#BAB431
secondary
#7E81C9
accent
#4DE246
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151309
muted
#83827B

Preview Lab

Preview with #BAB431

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

Preview Lab → · Contrast checker → · Palette generator →

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