#BAAB45#BAAB45

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

Color values

HEX#BAAB45
RGBrgb(186, 171, 69)
HSLhsl(52, 46%, 50%)
HSVhsv(52, 63%, 73%)
CMYKcmyk(0%, 8.1%, 62.9%, 27.1%)
CIE-LABlab(69.47, -7.00, 52.93)
CIE-LCHlch(69.47, 53.39, 97.54°)
OKLaboklab(73.44% -0.0234 0.1208)
OKLCHoklch(73.44% 0.123 101)
XYZxyz(35.8882, 39.9961, 11.4587)
Luminance0.4000 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAAB45 #4554BA
analogous
#BA7145 #BAAB45 #8EBA45
triadic
#BAAB45 #45BAAB #AB45BA
tetradic
#BAAB45 #45BA71 #4554BA #BA458E
square
#BAAB45 #45BA71 #4554BA #BA458E
split-complementary
#BAAB45 #458EBA #7145BA
monochromatic
#615924 #8D8234 #BAAB45 #CBBF72 #DBD39E

Accessibility & contrast

On white

2.33
#BAAB45 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.00
#BAAB45 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAAB45
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAAB45#FFFFFF#000000##000000
##BAAB451.002.339.009.00
#FFFFFF2.331.0021.0021.00
#0000009.0021.001.001.00
##0000009.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA639
Deuteranopia (green-blind)
#BEAC4A
Tritanopia (blue-blind)
#C8A095
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #baab45;
/* rgb */ color: rgb(186, 171, 69);
/* oklch */ color: oklch(73.4% 0.123 101.0);
Tailwind
colors: {
  custom: {
    50: '#d2c37d',
    500: '#baab45',
    950: '#000000',
  },
}
SCSS
$custom: #baab45;
$custom-light: #d2c37d;
$custom-dark: #000000;
JSON
{
  "hex": "#baab45",
  "rgb": {
    "r": 186,
    "g": 171,
    "b": 69
  },
  "hsl": {
    "h": 52.308,
    "s": 45.882,
    "l": 50
  },
  "oklch": {
    "l": 0.73439,
    "c": 0.12305,
    "h": 101
  },
  "luminance": 0.39995
}

Semantic roles & 50–950 ramp

primary
#BAAB45
secondary
#939AC8
accent
#63D652
background
#FDFBF7
surface
#FAF7EE
border
#D3D0C9
text
#14120A
muted
#83817C

Preview Lab

Preview with #BAAB45

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

Preview Lab → · Contrast checker → · Palette generator →

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