#BAAA42#BAAA42

#BAAA42 is a light, vivid yellow. Relative luminance 0.396; OKLCH L 73.2% C 0.125 H 100.5°. Best body text is #000000 at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#BAAA42
RGBrgb(186, 170, 66)
HSLhsl(52, 48%, 49%)
HSVhsv(52, 65%, 73%)
CMYKcmyk(0%, 8.6%, 64.5%, 27.1%)
CIE-LABlab(69.17, -6.67, 53.93)
CIE-LCHlch(69.17, 54.34, 97.05°)
OKLaboklab(73.2% -0.0228 0.1225)
OKLCHoklch(73.2% 0.125 100.5)
XYZxyz(35.6093, 39.5834, 10.9179)
Luminance0.3958 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAAA42 #4252BA
analogous
#BA6E42 #BAAA42 #8EBA42
triadic
#BAAA42 #42BAAA #AA42BA
tetradic
#BAAA42 #42BA6E #4252BA #BA428E
square
#BAAA42 #42BA6E #4252BA #BA428E
split-complementary
#BAAA42 #428EBA #6E42BA
monochromatic
#605722 #8D8132 #BAAA42 #CBBF6E #DBD39B

Accessibility & contrast

On white

2.36
#BAAA42 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.92
#BAAA42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAAA42
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAAA42#FFFFFF#000000##000000
##BAAA421.002.368.928.92
#FFFFFF2.361.0021.0021.00
#0000008.9221.001.001.00
##0000008.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A535
Deuteranopia (green-blind)
#BEAC48
Tritanopia (blue-blind)
#C89E94
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #baaa42;
/* rgb */ color: rgb(186, 170, 66);
/* oklch */ color: oklch(73.2% 0.125 100.5);
Tailwind
colors: {
  custom: {
    50: '#d2c37b',
    500: '#baaa42',
    950: '#000000',
  },
}
SCSS
$custom: #baaa42;
$custom-light: #d2c37b;
$custom-dark: #000000;
JSON
{
  "hex": "#baaa42",
  "rgb": {
    "r": 186,
    "g": 170,
    "b": 66
  },
  "hsl": {
    "h": 52,
    "s": 47.619,
    "l": 49.412
  },
  "oklch": {
    "l": 0.73196,
    "c": 0.12458,
    "h": 100.5
  },
  "luminance": 0.39582
}

Semantic roles & 50–950 ramp

primary
#BAAA42
secondary
#9098C8
accent
#63D751
background
#FDFBF7
surface
#FAF7EE
border
#D3D0C9
text
#14120A
muted
#83817C

Preview Lab

Preview with #BAAA42

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

Preview Lab → · Contrast checker → · Palette generator →

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