#BAA040#BAA040

#BAA040 is a light, moderate yellow. Relative luminance 0.360; OKLCH L 71.1% C 0.118 H 94.0°. Best body text is #000000 at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#BAA040
RGBrgb(186, 160, 64)
HSLhsl(47, 49%, 49%)
HSVhsv(47, 66%, 73%)
CMYKcmyk(0%, 14%, 65.6%, 27.1%)
CIE-LABlab(66.48, -1.48, 51.94)
CIE-LCHlch(66.48, 51.96, 91.63°)
OKLaboklab(71.06% -0.0082 0.118)
OKLCHoklch(71.06% 0.118 94)
XYZxyz(33.7475, 35.9527, 10.0115)
Luminance0.3595 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAA040 #405ABA
analogous
#BA6340 #BAA040 #97BA40
triadic
#BAA040 #40BAA0 #A040BA
tetradic
#BAA040 #40BA63 #405ABA #BA4097
square
#BAA040 #40BA63 #405ABA #BA4097
split-complementary
#BAA040 #4097BA #6340BA
monochromatic
#5F5221 #8C7930 #BAA040 #CCB76B #DCCD99

Accessibility & contrast

On white

2.56
#BAA040 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.19
#BAA040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAA040
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAA040#FFFFFF#000000##000000
##BAA0401.002.568.198.19
#FFFFFF2.561.0021.0021.00
#0000008.1921.001.001.00
##0000008.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09D35
Deuteranopia (green-blind)
#B7A545
Tritanopia (blue-blind)
#C8948C
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #baa040;
/* rgb */ color: rgb(186, 160, 64);
/* oklch */ color: oklch(71.1% 0.118 94.0);
Tailwind
colors: {
  custom: {
    50: '#d2bb79',
    500: '#baa040',
    950: '#000000',
  },
}
SCSS
$custom: #baa040;
$custom-light: #d2bb79;
$custom-dark: #000000;
JSON
{
  "hex": "#baa040",
  "rgb": {
    "r": 186,
    "g": 160,
    "b": 64
  },
  "hsl": {
    "h": 47.213,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.71062,
    "c": 0.11824,
    "h": 94
  },
  "luminance": 0.35951
}

Semantic roles & 50–950 ramp

primary
#BAA040
secondary
#8E9AC8
accent
#6DD84F
background
#FDFBF7
surface
#FAF6EE
border
#D3D0C9
text
#141109
muted
#83807B

Preview Lab

Preview with #BAA040

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

Preview Lab → · Contrast checker → · Palette generator →

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