#BAA731#BAA731

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

Color values

HEX#BAA731
RGBrgb(186, 167, 49)
HSLhsl(52, 58%, 46%)
HSVhsv(52, 74%, 73%)
CMYKcmyk(0%, 10.2%, 73.7%, 27.1%)
CIE-LABlab(68.24, -6.01, 59.85)
CIE-LCHlch(68.24, 60.15, 95.74°)
OKLaboklab(72.42% -0.0228 0.1321)
OKLCHoklch(72.42% 0.134 99.8)
XYZxyz(34.6244, 38.2999, 8.4740)
Luminance0.3830 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAA731 #3144BA
analogous
#BA6231 #BAA731 #88BA31
triadic
#BAA731 #31BAA7 #A731BA
tetradic
#BAA731 #31BA62 #3144BA #BA3188
square
#BAA731 #31BA62 #3144BA #BA3188
split-complementary
#BAA731 #3188BA #6231BA
monochromatic
#595017 #8A7C24 #BAA731 #D2C156 #DFD386

Accessibility & contrast

On white

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

On black

8.66
#BAA731 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAA731
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAA731#FFFFFF#000000##000000
##BAA7311.002.438.668.66
#FFFFFF2.431.0021.0021.00
#0000008.6621.001.001.00
##0000008.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A21C
Deuteranopia (green-blind)
#BDA939
Tritanopia (blue-blind)
#C99B90
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #baa731;
/* rgb */ color: rgb(186, 167, 49);
/* oklch */ color: oklch(72.4% 0.134 99.8);
Tailwind
colors: {
  custom: {
    50: '#d3c071',
    500: '#baa731',
    950: '#000000',
  },
}
SCSS
$custom: #baa731;
$custom-light: #d3c071;
$custom-dark: #000000;
JSON
{
  "hex": "#baa731",
  "rgb": {
    "r": 186,
    "g": 167,
    "b": 49
  },
  "hsl": {
    "h": 51.679,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.72418,
    "c": 0.13401,
    "h": 99.8
  },
  "luminance": 0.38298
}

Semantic roles & 50–950 ramp

primary
#BAA731
secondary
#7E88C9
accent
#5CE246
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#151208
muted
#83817B

Preview Lab

Preview with #BAA731

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

Preview Lab → · Contrast checker → · Palette generator →

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