#BAAB42#BAAB42

#BAAB42 is a light, vivid yellow. Relative luminance 0.400; OKLCH L 73.4% C 0.125 H 101.2°. Best body text is #000000 at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#BAAB42
RGBrgb(186, 171, 66)
HSLhsl(53, 48%, 49%)
HSVhsv(53, 65%, 73%)
CMYKcmyk(0%, 8.1%, 64.5%, 27.1%)
CIE-LABlab(69.44, -7.20, 54.22)
CIE-LCHlch(69.44, 54.69, 97.56°)
OKLaboklab(73.41% -0.0243 0.1231)
OKLCHoklch(73.41% 0.125 101.2)
XYZxyz(35.7974, 39.9598, 10.9806)
Luminance0.3996 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAAB42 #4251BA
analogous
#BA6F42 #BAAB42 #8DBA42
triadic
#BAAB42 #42BAAB #AB42BA
tetradic
#BAAB42 #42BA6F #4251BA #BA428D
square
#BAAB42 #42BA6F #4251BA #BA428D
split-complementary
#BAAB42 #428DBA #6F42BA
monochromatic
#605822 #8D8132 #BAAB42 #CBC06E #DBD39B

Accessibility & contrast

On white

2.34
#BAAB42 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.99
#BAAB42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAAB42
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAAB42#FFFFFF#000000##000000
##BAAB421.002.348.998.99
#FFFFFF2.341.0021.0021.00
#0000008.9921.001.001.00
##0000008.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA635
Deuteranopia (green-blind)
#BFAC48
Tritanopia (blue-blind)
#C89F95
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #baab42;
/* rgb */ color: rgb(186, 171, 66);
/* oklch */ color: oklch(73.4% 0.125 101.2);
Tailwind
colors: {
  custom: {
    50: '#d2c37b',
    500: '#baab42',
    950: '#000000',
  },
}
SCSS
$custom: #baab42;
$custom-light: #d2c37b;
$custom-dark: #000000;
JSON
{
  "hex": "#baab42",
  "rgb": {
    "r": 186,
    "g": 171,
    "b": 66
  },
  "hsl": {
    "h": 52.5,
    "s": 47.619,
    "l": 49.412
  },
  "oklch": {
    "l": 0.7341,
    "c": 0.12546,
    "h": 101.2
  },
  "luminance": 0.39958
}

Semantic roles & 50–950 ramp

primary
#BAAB42
secondary
#9097C8
accent
#61D751
background
#FDFBF7
surface
#FAF7EE
border
#D3D0C9
text
#14120A
muted
#83817C

Preview Lab

Preview with #BAAB42

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

Preview Lab → · Contrast checker → · Palette generator →

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