#BAA72C#BAA72C

#BAA72C is a light, vivid yellow. Relative luminance 0.383; OKLCH L 72.4% C 0.137 H 100.1°. Best body text is #000000 at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#BAA72C
RGBrgb(186, 167, 44)
HSLhsl(52, 62%, 45%)
HSVhsv(52, 76%, 73%)
CMYKcmyk(0%, 10.2%, 76.3%, 27.1%)
CIE-LABlab(68.21, -6.23, 61.60)
CIE-LCHlch(68.21, 61.92, 95.77°)
OKLaboklab(72.39% -0.0239 0.1348)
OKLCHoklch(72.39% 0.137 100.1)
XYZxyz(34.5247, 38.2601, 7.9488)
Luminance0.3826 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAA72C #2C3FBA
analogous
#BA602C #BAA72C #86BA2C
triadic
#BAA72C #2CBAA7 #A72CBA
tetradic
#BAA72C #2CBA60 #2C3FBA #BA2C86
square
#BAA72C #2CBA60 #2C3FBA #BA2C86
split-complementary
#BAA72C #2C86BA #602CBA
monochromatic
#574E15 #897B20 #BAA72C #D5C34E #E1D480

Accessibility & contrast

On white

2.43
#BAA72C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.65
#BAA72C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAA72C
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAA72C#FFFFFF#000000##000000
##BAA72C1.002.438.658.65
#FFFFFF2.431.0021.0021.00
#0000008.6521.001.001.00
##0000008.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A212
Deuteranopia (green-blind)
#BDA935
Tritanopia (blue-blind)
#C99A90
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #baa72c;
/* rgb */ color: rgb(186, 167, 44);
/* oklch */ color: oklch(72.4% 0.137 100.1);
Tailwind
colors: {
  custom: {
    50: '#d3c06f',
    500: '#baa72c',
    950: '#000000',
  },
}
SCSS
$custom: #baa72c;
$custom-light: #d3c06f;
$custom-dark: #000000;
JSON
{
  "hex": "#baa72c",
  "rgb": {
    "r": 186,
    "g": 167,
    "b": 44
  },
  "hsl": {
    "h": 51.972,
    "s": 61.739,
    "l": 45.098
  },
  "oklch": {
    "l": 0.72386,
    "c": 0.13692,
    "h": 100.1
  },
  "luminance": 0.38258
}

Semantic roles & 50–950 ramp

primary
#BAA72C
secondary
#7883CA
accent
#59E543
background
#FDFBF7
surface
#FBF7ED
border
#D4D0C8
text
#151208
muted
#83817B

Preview Lab

Preview with #BAA72C

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

Preview Lab → · Contrast checker → · Palette generator →

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