#BAA42C#BAA42C

#BAA42C is a light, vivid yellow. Relative luminance 0.372; OKLCH L 71.7% C 0.135 H 98.3°. Best body text is #000000 at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#BAA42C
RGBrgb(186, 164, 44)
HSLhsl(51, 62%, 45%)
HSVhsv(51, 76%, 73%)
CMYKcmyk(0%, 11.8%, 76.3%, 27.1%)
CIE-LABlab(67.41, -4.64, 60.86)
CIE-LCHlch(67.41, 61.03, 94.36°)
OKLaboklab(71.75% -0.0194 0.1332)
OKLCHoklch(71.75% 0.135 98.3)
XYZxyz(33.9815, 37.1736, 7.7677)
Luminance0.3717 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAA42C #2C42BA
analogous
#BA5D2C #BAA42C #89BA2C
triadic
#BAA42C #2CBAA4 #A42CBA
tetradic
#BAA42C #2CBA5D #2C42BA #BA2C89
square
#BAA42C #2CBA5D #2C42BA #BA2C89
split-complementary
#BAA42C #2C89BA #5D2CBA
monochromatic
#574D15 #897820 #BAA42C #D5C04E #E1D280

Accessibility & contrast

On white

2.49
#BAA42C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.43
#BAA42C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAA42C
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAA42C#FFFFFF#000000##000000
##BAA42C1.002.498.438.43
#FFFFFF2.491.0021.0021.00
#0000008.4321.001.001.00
##0000008.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A013
Deuteranopia (green-blind)
#BBA734
Tritanopia (blue-blind)
#C9978D
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #baa42c;
/* rgb */ color: rgb(186, 164, 44);
/* oklch */ color: oklch(71.7% 0.135 98.3);
Tailwind
colors: {
  custom: {
    50: '#d3be6f',
    500: '#baa42c',
    950: '#000000',
  },
}
SCSS
$custom: #baa42c;
$custom-light: #d3be6f;
$custom-dark: #000000;
JSON
{
  "hex": "#baa42c",
  "rgb": {
    "r": 186,
    "g": 164,
    "b": 44
  },
  "hsl": {
    "h": 50.704,
    "s": 61.739,
    "l": 45.098
  },
  "oklch": {
    "l": 0.71748,
    "c": 0.13463,
    "h": 98.3
  },
  "luminance": 0.37172
}

Semantic roles & 50–950 ramp

primary
#BAA42C
secondary
#7885CA
accent
#5CE543
background
#FDFBF7
surface
#FBF6ED
border
#D4D0C8
text
#151208
muted
#83817B

Preview Lab

Preview with #BAA42C

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

Preview Lab → · Contrast checker → · Palette generator →

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