#BAB942#BAB942

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

Color values

HEX#BAB942
RGBrgb(186, 185, 66)
HSLhsl(60, 48%, 49%)
HSVhsv(60, 65%, 73%)
CMYKcmyk(0%, 0.5%, 64.5%, 27.1%)
CIE-LABlab(73.24, -14.44, 58.22)
CIE-LCHlch(73.24, 59.98, 103.93°)
OKLaboklab(76.43% -0.0448 0.1315)
OKLCHoklch(76.43% 0.139 108.8)
XYZxyz(38.5833, 45.5315, 11.9092)
Luminance0.4553 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB942 #4243BA
analogous
#BA7D42 #BAB942 #7FBA42
triadic
#BAB942 #42BAB9 #B942BA
tetradic
#BAB942 #42BA7D #4243BA #BA427F
square
#BAB942 #42BA7D #4243BA #BA427F
split-complementary
#BAB942 #427FBA #7D42BA
monochromatic
#605F22 #8D8C32 #BAB942 #CBCB6E #DBDB9B

Accessibility & contrast

On white

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

On black

10.11
#BAB942 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB942
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB942#FFFFFF#000000##000000
##BAB9421.002.0810.1110.11
#FFFFFF2.081.0021.0021.00
#00000010.1121.001.001.00
##00000010.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B232
Deuteranopia (green-blind)
#C9B64A
Tritanopia (blue-blind)
#C7AEA1
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #bab942;
/* rgb */ color: rgb(186, 185, 66);
/* oklch */ color: oklch(76.4% 0.139 108.8);
Tailwind
colors: {
  custom: {
    50: '#d2cd7c',
    500: '#bab942',
    950: '#000000',
  },
}
SCSS
$custom: #bab942;
$custom-light: #d2cd7c;
$custom-dark: #000000;
JSON
{
  "hex": "#bab942",
  "rgb": {
    "r": 186,
    "g": 185,
    "b": 66
  },
  "hsl": {
    "h": 59.5,
    "s": 47.619,
    "l": 49.412
  },
  "oklch": {
    "l": 0.76434,
    "c": 0.13897,
    "h": 108.8
  },
  "luminance": 0.4553
}

Semantic roles & 50–950 ramp

primary
#BAB942
secondary
#9091C8
accent
#52D751
background
#FDFCF7
surface
#FAF9EE
border
#D3D2C9
text
#14130A
muted
#83827C

Preview Lab

Preview with #BAB942

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

Preview Lab → · Contrast checker → · Palette generator →

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