#BBAA31#BBAA31

#BBAA31 is a light, vivid yellow. Relative luminance 0.395; OKLCH L 73.2% C 0.136 H 101.0°. Best body text is #000000 at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#BBAA31
RGBrgb(187, 170, 49)
HSLhsl(53, 58%, 46%)
HSVhsv(53, 74%, 73%)
CMYKcmyk(0%, 9.1%, 73.8%, 26.7%)
CIE-LABlab(69.14, -7.15, 60.75)
CIE-LCHlch(69.14, 61.17, 96.72°)
OKLaboklab(73.15% -0.0261 0.1339)
OKLCHoklch(73.15% 0.136 101)
XYZxyz(35.4243, 39.5376, 8.6707)
Luminance0.3954 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BBAA31 #3142BB
analogous
#BB6531 #BBAA31 #87BB31
triadic
#BBAA31 #31BBAA #AA31BB
tetradic
#BBAA31 #31BB65 #3142BB #BB3187
square
#BBAA31 #31BB65 #3142BB #BB3187
split-complementary
#BBAA31 #3187BB #6531BB
monochromatic
#5A5218 #8B7E24 #BBAA31 #D3C356 #E0D587

Accessibility & contrast

On white

2.36
#BBAA31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.91
#BBAA31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BBAA31
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BBAA31#FFFFFF#000000##000000
##BBAA311.002.368.918.91
#FFFFFF2.361.0021.0021.00
#0000008.9121.001.001.00
##0000008.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA51B
Deuteranopia (green-blind)
#BFAC39
Tritanopia (blue-blind)
#CA9E92
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #bbaa31;
/* rgb */ color: rgb(187, 170, 49);
/* oklch */ color: oklch(73.2% 0.136 101.0);
Tailwind
colors: {
  custom: {
    50: '#d3c272',
    500: '#bbaa31',
    950: '#000000',
  },
}
SCSS
$custom: #bbaa31;
$custom-light: #d3c272;
$custom-dark: #000000;
JSON
{
  "hex": "#bbaa31",
  "rgb": {
    "r": 187,
    "g": 170,
    "b": 49
  },
  "hsl": {
    "h": 52.609,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.73153,
    "c": 0.13643,
    "h": 101
  },
  "luminance": 0.39536
}

Semantic roles & 50–950 ramp

primary
#BBAA31
secondary
#7F88C9
accent
#59E246
background
#FDFBF7
surface
#FBF7ED
border
#D4D0C8
text
#151208
muted
#83817B

Preview Lab

Preview with #BBAA31

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

Preview Lab → · Contrast checker → · Palette generator →

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