#BAA940#BAA940

#BAA940 is a light, vivid yellow. Relative luminance 0.392; OKLCH L 73.0% C 0.125 H 100.1°. Best body text is #000000 at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#BAA940
RGBrgb(186, 169, 64)
HSLhsl(52, 49%, 49%)
HSVhsv(52, 66%, 73%)
CMYKcmyk(0%, 9.1%, 65.6%, 27.1%)
CIE-LABlab(68.89, -6.27, 54.49)
CIE-LCHlch(68.89, 54.85, 96.56°)
OKLaboklab(72.97% -0.0219 0.1234)
OKLCHoklch(72.97% 0.125 100.1)
XYZxyz(35.3646, 39.1868, 10.5505)
Luminance0.3918 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAA940 #4051BA
analogous
#BA6C40 #BAA940 #8EBA40
triadic
#BAA940 #40BAA9 #A940BA
tetradic
#BAA940 #40BA6C #4051BA #BA408E
square
#BAA940 #40BA6C #4051BA #BA408E
split-complementary
#BAA940 #408EBA #6C40BA
monochromatic
#5F5621 #8C8030 #BAA940 #CCBF6B #DCD299

Accessibility & contrast

On white

2.38
#BAA940 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.84
#BAA940 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAA940
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAA940#FFFFFF#000000##000000
##BAA9401.002.388.848.84
#FFFFFF2.381.0021.0021.00
#0000008.8421.001.001.00
##0000008.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A433
Deuteranopia (green-blind)
#BDAB46
Tritanopia (blue-blind)
#C89D93
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #baa940;
/* rgb */ color: rgb(186, 169, 64);
/* oklch */ color: oklch(73.0% 0.125 100.1);
Tailwind
colors: {
  custom: {
    50: '#d2c27a',
    500: '#baa940',
    950: '#000000',
  },
}
SCSS
$custom: #baa940;
$custom-light: #d2c27a;
$custom-dark: #000000;
JSON
{
  "hex": "#baa940",
  "rgb": {
    "r": 186,
    "g": 169,
    "b": 64
  },
  "hsl": {
    "h": 51.639,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.72965,
    "c": 0.12528,
    "h": 100.1
  },
  "luminance": 0.39185
}

Semantic roles & 50–950 ramp

primary
#BAA940
secondary
#8E96C8
accent
#63D84F
background
#FDFBF7
surface
#FAF7EE
border
#D3D0C9
text
#141209
muted
#83817B

Preview Lab

Preview with #BAA940

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

Preview Lab → · Contrast checker → · Palette generator →

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