#B1AA31#B1AA31

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

Color values

HEX#B1AA31
RGBrgb(177, 170, 49)
HSLhsl(57, 57%, 44%)
HSVhsv(57, 72%, 69%)
CMYKcmyk(0%, 4%, 72.3%, 30.6%)
CIE-LABlab(68.26, -11.53, 59.59)
CIE-LCHlch(68.26, 60.70, 100.95°)
OKLaboklab(72.24% -0.0379 0.1318)
OKLCHoklch(72.24% 0.137 106)
XYZxyz(33.0619, 38.3195, 8.5600)
Luminance0.3832 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B1AA31 #3138B1
analogous
#B16A31 #B1AA31 #78B131
triadic
#B1AA31 #31B1AA #AA31B1
tetradic
#B1AA31 #31B16A #3138B1 #B13178
square
#B1AA31 #31B16A #3138B1 #B13178
split-complementary
#B1AA31 #3178B1 #6A31B1
monochromatic
#514E16 #817C24 #B1AA31 #CFC851 #DCD780

Accessibility & contrast

On white

2.42
#B1AA31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##B1AA31#FFFFFF#000000##000000
##B1AA311.002.428.668.66
#FFFFFF2.421.0021.0021.00
#0000008.6621.001.001.00
##0000008.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A41B
Deuteranopia (green-blind)
#BCA93A
Tritanopia (blue-blind)
#BE9E92
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #b1aa31;
/* rgb */ color: rgb(177, 170, 49);
/* oklch */ color: oklch(72.2% 0.137 106.0);
Tailwind
colors: {
  custom: {
    50: '#ccc372',
    500: '#b1aa31',
    950: '#000000',
  },
}
SCSS
$custom: #b1aa31;
$custom-light: #ccc372;
$custom-dark: #000000;
JSON
{
  "hex": "#b1aa31",
  "rgb": {
    "r": 177,
    "g": 170,
    "b": 49
  },
  "hsl": {
    "h": 56.719,
    "s": 56.637,
    "l": 44.314
  },
  "oklch": {
    "l": 0.72238,
    "c": 0.13717,
    "h": 106
  },
  "luminance": 0.38318
}

Semantic roles & 50–950 ramp

primary
#B1AA31
secondary
#797DC5
accent
#50E048
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B1AA31

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

Preview Lab → · Contrast checker → · Palette generator →

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