#BAB042#BAB042

#BAB042 is a light, vivid yellow. Relative luminance 0.419; OKLCH L 74.5% C 0.130 H 104.1°. Best body text is #000000 at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#BAB042
RGBrgb(186, 176, 66)
HSLhsl(55, 48%, 49%)
HSVhsv(55, 65%, 73%)
CMYKcmyk(0%, 5.4%, 64.5%, 27.1%)
CIE-LABlab(70.79, -9.81, 55.65)
CIE-LCHlch(70.79, 56.51, 100.00°)
OKLaboklab(74.48% -0.0317 0.1261)
OKLCHoklch(74.48% 0.13 104.1)
XYZxyz(36.7598, 41.8845, 11.3014)
Luminance0.4188 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB042 #424CBA
analogous
#BA7442 #BAB042 #88BA42
triadic
#BAB042 #42BAB0 #B042BA
tetradic
#BAB042 #42BA74 #424CBA #BA4288
square
#BAB042 #42BA74 #424CBA #BA4288
split-complementary
#BAB042 #4288BA #7442BA
monochromatic
#605B22 #8D8532 #BAB042 #CBC46E #DBD69B

Accessibility & contrast

On white

2.24
#BAB042 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.38
#BAB042 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB042
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB042#FFFFFF#000000##000000
##BAB0421.002.249.389.38
#FFFFFF2.241.0021.0021.00
#0000009.3821.001.001.00
##0000009.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFAA34
Deuteranopia (green-blind)
#C2B048
Tritanopia (blue-blind)
#C7A499
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #bab042;
/* rgb */ color: rgb(186, 176, 66);
/* oklch */ color: oklch(74.5% 0.130 104.1);
Tailwind
colors: {
  custom: {
    50: '#d2c77c',
    500: '#bab042',
    950: '#000000',
  },
}
SCSS
$custom: #bab042;
$custom-light: #d2c77c;
$custom-dark: #000000;
JSON
{
  "hex": "#bab042",
  "rgb": {
    "r": 186,
    "g": 176,
    "b": 66
  },
  "hsl": {
    "h": 55,
    "s": 47.619,
    "l": 49.412
  },
  "oklch": {
    "l": 0.74483,
    "c": 0.13004,
    "h": 104.1
  },
  "luminance": 0.41883
}

Semantic roles & 50–950 ramp

primary
#BAB042
secondary
#9095C8
accent
#5CD751
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#14130A
muted
#83827C

Preview Lab

Preview with #BAB042

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

Preview Lab → · Contrast checker → · Palette generator →

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