#BAB831#BAB831

#BAB831 is a light, vivid yellow. Relative luminance 0.449; OKLCH L 76.1% C 0.149 H 108.6°. Best body text is #000000 at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#BAB831
RGBrgb(186, 184, 49)
HSLhsl(59, 58%, 46%)
HSVhsv(59, 74%, 73%)
CMYKcmyk(0%, 1.1%, 73.7%, 27.1%)
CIE-LABlab(72.85, -14.82, 64.24)
CIE-LCHlch(72.85, 65.93, 103.00°)
OKLaboklab(76.09% -0.0476 0.1414)
OKLCHoklch(76.09% 0.149 108.6)
XYZxyz(37.9460, 44.9430, 9.5812)
Luminance0.4494 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB831 #3133BA
analogous
#BA7331 #BAB831 #77BA31
triadic
#BAB831 #31BAB8 #B831BA
tetradic
#BAB831 #31BA73 #3133BA #BA3177
square
#BAB831 #31BA73 #3133BA #BA3177
split-complementary
#BAB831 #3177BA #7331BA
monochromatic
#595817 #8A8824 #BAB831 #D2D156 #DFDE86

Accessibility & contrast

On white

2.10
#BAB831 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.99
#BAB831 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB831
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB831#FFFFFF#000000##000000
##BAB8311.002.109.999.99
#FFFFFF2.101.0021.0021.00
#0000009.9921.001.001.00
##0000009.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B015
Deuteranopia (green-blind)
#C9B53C
Tritanopia (blue-blind)
#C7AC9E
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #bab831;
/* rgb */ color: rgb(186, 184, 49);
/* oklch */ color: oklch(76.1% 0.149 108.6);
Tailwind
colors: {
  custom: {
    50: '#d2cd73',
    500: '#bab831',
    950: '#000000',
  },
}
SCSS
$custom: #bab831;
$custom-light: #d2cd73;
$custom-dark: #000000;
JSON
{
  "hex": "#bab831",
  "rgb": {
    "r": 186,
    "g": 184,
    "b": 49
  },
  "hsl": {
    "h": 59.124,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.7609,
    "c": 0.14916,
    "h": 108.6
  },
  "luminance": 0.44942
}

Semantic roles & 50–950 ramp

primary
#BAB831
secondary
#7E7FC9
accent
#49E246
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151309
muted
#83827B

Preview Lab

Preview with #BAB831

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

Preview Lab → · Contrast checker → · Palette generator →

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