#BAA831#BAA831

#BAA831 is a light, vivid yellow. Relative luminance 0.387; OKLCH L 72.6% C 0.135 H 100.4°. Best body text is #000000 at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#BAA831
RGBrgb(186, 168, 49)
HSLhsl(52, 58%, 46%)
HSVhsv(52, 74%, 73%)
CMYKcmyk(0%, 9.7%, 73.7%, 27.1%)
CIE-LABlab(68.51, -6.54, 60.11)
CIE-LCHlch(68.51, 60.47, 96.21°)
OKLaboklab(72.63% -0.0243 0.1326)
OKLCHoklch(72.63% 0.135 100.4)
XYZxyz(34.8084, 38.6677, 8.5353)
Luminance0.3867 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAA831 #3143BA
analogous
#BA6331 #BAA831 #87BA31
triadic
#BAA831 #31BAA8 #A831BA
tetradic
#BAA831 #31BA63 #3143BA #BA3187
square
#BAA831 #31BA63 #3143BA #BA3187
split-complementary
#BAA831 #3187BA #6331BA
monochromatic
#595017 #8A7C24 #BAA831 #D2C256 #DFD386

Accessibility & contrast

On white

2.40
#BAA831 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.73
#BAA831 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAA831
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAA831#FFFFFF#000000##000000
##BAA8311.002.408.738.73
#FFFFFF2.401.0021.0021.00
#0000008.7321.001.001.00
##0000008.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A31C
Deuteranopia (green-blind)
#BDAA39
Tritanopia (blue-blind)
#C99C91
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #baa831;
/* rgb */ color: rgb(186, 168, 49);
/* oklch */ color: oklch(72.6% 0.135 100.4);
Tailwind
colors: {
  custom: {
    50: '#d3c172',
    500: '#baa831',
    950: '#000000',
  },
}
SCSS
$custom: #baa831;
$custom-light: #d3c172;
$custom-dark: #000000;
JSON
{
  "hex": "#baa831",
  "rgb": {
    "r": 186,
    "g": 168,
    "b": 49
  },
  "hsl": {
    "h": 52.117,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.72632,
    "c": 0.13482,
    "h": 100.4
  },
  "luminance": 0.38666
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BAA831

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

Preview Lab → · Contrast checker → · Palette generator →

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