#BAA52D#BAA52D

#BAA52D is a light, vivid yellow. Relative luminance 0.375; OKLCH L 72.0% C 0.135 H 98.8°. Best body text is #000000 at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#BAA52D
RGBrgb(186, 165, 45)
HSLhsl(51, 61%, 45%)
HSVhsv(51, 76%, 73%)
CMYKcmyk(0%, 11.3%, 75.8%, 27.1%)
CIE-LABlab(67.68, -5.13, 60.76)
CIE-LCHlch(67.68, 60.98, 94.83°)
OKLaboklab(71.97% -0.0207 0.1332)
OKLCHoklch(71.97% 0.135 98.8)
XYZxyz(34.1802, 37.5405, 7.9278)
Luminance0.3754 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAA52D #2D42BA
analogous
#BA5F2D #BAA52D #88BA2D
triadic
#BAA52D #2DBAA5 #A52DBA
tetradic
#BAA52D #2DBA5F #2D42BA #BA2D88
square
#BAA52D #2DBA5F #2D42BA #BA2D88
split-complementary
#BAA52D #2D88BA #5F2DBA
monochromatic
#574E15 #897921 #BAA52D #D5C150 #E0D281

Accessibility & contrast

On white

2.47
#BAA52D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.51
#BAA52D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAA52D
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAA52D#FFFFFF#000000##000000
##BAA52D1.002.478.518.51
#FFFFFF2.471.0021.0021.00
#0000008.5121.001.001.00
##0000008.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A115
Deuteranopia (green-blind)
#BBA835
Tritanopia (blue-blind)
#C9988E
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #baa52d;
/* rgb */ color: rgb(186, 165, 45);
/* oklch */ color: oklch(72.0% 0.135 98.8);
Tailwind
colors: {
  custom: {
    50: '#d3bf6f',
    500: '#baa52d',
    950: '#000000',
  },
}
SCSS
$custom: #baa52d;
$custom-light: #d3bf6f;
$custom-dark: #000000;
JSON
{
  "hex": "#baa52d",
  "rgb": {
    "r": 186,
    "g": 165,
    "b": 45
  },
  "hsl": {
    "h": 51.064,
    "s": 61.039,
    "l": 45.294
  },
  "oklch": {
    "l": 0.71966,
    "c": 0.13482,
    "h": 98.8
  },
  "luminance": 0.37539
}

Semantic roles & 50–950 ramp

primary
#BAA52D
secondary
#7985C9
accent
#5CE444
background
#FDFBF7
surface
#FBF6ED
border
#D4D0C8
text
#151208
muted
#83817B

Preview Lab

Preview with #BAA52D

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

Preview Lab → · Contrast checker → · Palette generator →

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