#BAA231#BAA231

#BAA231 is a light, vivid yellow. Relative luminance 0.365; OKLCH L 71.4% C 0.130 H 96.7°. Best body text is #000000 at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#BAA231
RGBrgb(186, 162, 49)
HSLhsl(49, 58%, 46%)
HSVhsv(49, 74%, 73%)
CMYKcmyk(0%, 12.9%, 73.7%, 27.1%)
CIE-LABlab(66.90, -3.36, 58.56)
CIE-LCHlch(66.90, 58.66, 93.28°)
OKLaboklab(71.36% -0.0153 0.1293)
OKLCHoklch(71.36% 0.13 96.7)
XYZxyz(33.7261, 36.5033, 8.1745)
Luminance0.3650 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAA231 #3149BA
analogous
#BA5D31 #BAA231 #8DBA31
triadic
#BAA231 #31BAA2 #A231BA
tetradic
#BAA231 #31BA5D #3149BA #BA318D
square
#BAA231 #31BA5D #3149BA #BA318D
split-complementary
#BAA231 #318DBA #5D31BA
monochromatic
#594E17 #8A7824 #BAA231 #D2BD56 #DFD086

Accessibility & contrast

On white

2.53
#BAA231 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.30
#BAA231 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAA231
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAA231#FFFFFF#000000##000000
##BAA2311.002.538.308.30
#FFFFFF2.531.0021.0021.00
#0000008.3021.001.001.00
##0000008.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B39E1E
Deuteranopia (green-blind)
#B9A638
Tritanopia (blue-blind)
#C9958C
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #baa231;
/* rgb */ color: rgb(186, 162, 49);
/* oklch */ color: oklch(71.4% 0.130 96.7);
Tailwind
colors: {
  custom: {
    50: '#d3bd71',
    500: '#baa231',
    950: '#000000',
  },
}
SCSS
$custom: #baa231;
$custom-light: #d3bd71;
$custom-dark: #000000;
JSON
{
  "hex": "#baa231",
  "rgb": {
    "r": 186,
    "g": 162,
    "b": 49
  },
  "hsl": {
    "h": 49.489,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.71358,
    "c": 0.13023,
    "h": 96.7
  },
  "luminance": 0.36502
}

Semantic roles & 50–950 ramp

primary
#BAA231
secondary
#7E8BC9
accent
#61E246
background
#FDFBF7
surface
#FBF6ED
border
#D4D0C8
text
#151208
muted
#83817B

Preview Lab

Preview with #BAA231

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

Preview Lab → · Contrast checker → · Palette generator →

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