#BAB941#BAB941

#BAB941 is a light, vivid yellow. Relative luminance 0.455; OKLCH L 76.4% C 0.140 H 108.8°. Best body text is #000000 at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#BAB941
RGBrgb(186, 185, 65)
HSLhsl(60, 48%, 49%)
HSVhsv(60, 65%, 73%)
CMYKcmyk(0%, 0.5%, 65.1%, 27.1%)
CIE-LABlab(73.23, -14.50, 58.62)
CIE-LCHlch(73.23, 60.38, 103.89°)
OKLaboklab(76.43% -0.0451 0.1322)
OKLCHoklch(76.43% 0.14 108.8)
XYZxyz(38.5541, 45.5198, 11.7553)
Luminance0.4552 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB941 #4142BA
analogous
#BA7D41 #BAB941 #7FBA41
triadic
#BAB941 #41BAB9 #B941BA
tetradic
#BAB941 #41BA7D #4142BA #BA417F
square
#BAB941 #41BA7D #4142BA #BA417F
split-complementary
#BAB941 #417FBA #7D41BA
monochromatic
#5F5F21 #8D8C31 #BAB941 #CCCB6C #DCDB9A

Accessibility & contrast

On white

2.08
#BAB941 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.10
#BAB941 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB941
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB941#FFFFFF#000000##000000
##BAB9411.002.0810.1010.10
#FFFFFF2.081.0021.0021.00
#00000010.1021.001.001.00
##00000010.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C8B231
Deuteranopia (green-blind)
#C9B649
Tritanopia (blue-blind)
#C7AEA0
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #bab941;
/* rgb */ color: rgb(186, 185, 65);
/* oklch */ color: oklch(76.4% 0.140 108.8);
Tailwind
colors: {
  custom: {
    50: '#d2cd7c',
    500: '#bab941',
    950: '#000000',
  },
}
SCSS
$custom: #bab941;
$custom-light: #d2cd7c;
$custom-dark: #000000;
JSON
{
  "hex": "#bab941",
  "rgb": {
    "r": 186,
    "g": 185,
    "b": 65
  },
  "hsl": {
    "h": 59.504,
    "s": 48.207,
    "l": 49.216
  },
  "oklch": {
    "l": 0.76425,
    "c": 0.13971,
    "h": 108.8
  },
  "luminance": 0.45519
}

Semantic roles & 50–950 ramp

primary
#BAB941
secondary
#8F90C8
accent
#51D850
background
#FDFCF7
surface
#FAF9EE
border
#D3D2C9
text
#14130A
muted
#83827C

Preview Lab

Preview with #BAB941

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

Preview Lab → · Contrast checker → · Palette generator →

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