#BAAB52#BAAB52

#BAAB52 is a light, moderate yellow. Relative luminance 0.402; OKLCH L 73.6% C 0.112 H 99.9°. Best body text is #000000 at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#BAAB52
RGBrgb(186, 171, 82)
HSLhsl(51, 43%, 53%)
HSVhsv(51, 56%, 73%)
CMYKcmyk(0%, 8.1%, 55.9%, 27.1%)
CIE-LABlab(69.59, -6.05, 47.06)
CIE-LCHlch(69.59, 47.45, 97.33°)
OKLaboklab(73.58% -0.0191 0.1099)
OKLCHoklch(73.58% 0.112 99.9)
XYZxyz(36.3369, 40.1755, 13.8216)
Luminance0.4017 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAAB52 #5261BA
analogous
#BA7752 #BAAB52 #95BA52
triadic
#BAAB52 #52BAAB #AB52BA
tetradic
#BAAB52 #52BA77 #5261BA #BA5295
square
#BAAB52 #52BA77 #5261BA #BA5295
split-complementary
#BAAB52 #5295BA #7752BA
monochromatic
#685F2A #94873B #BAAB52 #CBC07E #DDD5AA

Accessibility & contrast

On white

2.32
#BAAB52 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.03
#BAAB52 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAAB52
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAAB52#FFFFFF#000000##000000
##BAAB521.002.329.039.03
#FFFFFF2.321.0021.0021.00
#0000009.0321.001.001.00
##0000009.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A749
Deuteranopia (green-blind)
#BDAD56
Tritanopia (blue-blind)
#C7A097
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #baab52;
/* rgb */ color: rgb(186, 171, 82);
/* oklch */ color: oklch(73.6% 0.112 99.9);
Tailwind
colors: {
  custom: {
    50: '#d1c385',
    500: '#baab52',
    950: '#000000',
  },
}
SCSS
$custom: #baab52;
$custom-light: #d1c385;
$custom-dark: #000000;
JSON
{
  "hex": "#baab52",
  "rgb": {
    "r": 186,
    "g": 171,
    "b": 82
  },
  "hsl": {
    "h": 51.346,
    "s": 42.975,
    "l": 52.549
  },
  "oklch": {
    "l": 0.73581,
    "c": 0.11158,
    "h": 99.9
  },
  "luminance": 0.40174
}

Semantic roles & 50–950 ramp

primary
#BAAB52
secondary
#9DA4CA
accent
#67D355
background
#FDFBF8
surface
#FAF7EF
border
#D3D0CA
text
#14120B
muted
#83817C

Preview Lab

Preview with #BAAB52

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

Preview Lab → · Contrast checker → · Palette generator →

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