#BAB841#BAB841

#BAB841 is a light, vivid yellow. Relative luminance 0.451; OKLCH L 76.2% C 0.139 H 108.4°. Best body text is #000000 at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#BAB841
RGBrgb(186, 184, 65)
HSLhsl(59, 48%, 49%)
HSVhsv(59, 65%, 73%)
CMYKcmyk(0%, 1.1%, 65.1%, 27.1%)
CIE-LABlab(72.96, -13.99, 58.33)
CIE-LCHlch(72.96, 59.99, 103.49°)
OKLaboklab(76.21% -0.0437 0.1316)
OKLCHoklch(76.21% 0.139 108.4)
XYZxyz(38.3456, 45.1029, 11.6858)
Luminance0.4510 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB841 #4143BA
analogous
#BA7C41 #BAB841 #80BA41
triadic
#BAB841 #41BAB8 #B841BA
tetradic
#BAB841 #41BA7C #4143BA #BA4180
square
#BAB841 #41BA7C #4143BA #BA4180
split-complementary
#BAB841 #4180BA #7C41BA
monochromatic
#5F5E21 #8D8B31 #BAB841 #CCCA6C #DCDB9A

Accessibility & contrast

On white

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

On black

10.02
#BAB841 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB841
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB841#FFFFFF#000000##000000
##BAB8411.002.1010.0210.02
#FFFFFF2.101.0021.0021.00
#00000010.0221.001.001.00
##00000010.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B131
Deuteranopia (green-blind)
#C9B549
Tritanopia (blue-blind)
#C7ADA0
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #bab841;
/* rgb */ color: rgb(186, 184, 65);
/* oklch */ color: oklch(76.2% 0.139 108.4);
Tailwind
colors: {
  custom: {
    50: '#d2cd7c',
    500: '#bab841',
    950: '#000000',
  },
}
SCSS
$custom: #bab841;
$custom-light: #d2cd7c;
$custom-dark: #000000;
JSON
{
  "hex": "#bab841",
  "rgb": {
    "r": 186,
    "g": 184,
    "b": 65
  },
  "hsl": {
    "h": 59.008,
    "s": 48.207,
    "l": 49.216
  },
  "oklch": {
    "l": 0.76207,
    "c": 0.13868,
    "h": 108.4
  },
  "luminance": 0.45102
}

Semantic roles & 50–950 ramp

primary
#BAB841
secondary
#8F90C8
accent
#52D850
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#14130A
muted
#83827C

Preview Lab

Preview with #BAB841

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

Preview Lab → · Contrast checker → · Palette generator →

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