#B4AA31#B4AA31

#B4AA31 is a light, vivid yellow. Relative luminance 0.387; OKLCH L 72.5% C 0.137 H 104.5°. Best body text is #000000 at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#B4AA31
RGBrgb(180, 170, 49)
HSLhsl(55, 57%, 45%)
HSVhsv(55, 73%, 71%)
CMYKcmyk(0%, 5.6%, 72.8%, 29.4%)
CIE-LABlab(68.52, -10.22, 59.93)
CIE-LCHlch(68.52, 60.80, 99.68°)
OKLaboklab(72.51% -0.0343 0.1325)
OKLCHoklch(72.51% 0.137 104.5)
XYZxyz(33.7529, 38.6758, 8.5924)
Luminance0.3867 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4AA31 #313BB4
analogous
#B46931 #B4AA31 #7CB431
triadic
#B4AA31 #31B4AA #AA31B4
tetradic
#B4AA31 #31B469 #313BB4 #B4317C
square
#B4AA31 #31B469 #313BB4 #B4317C
split-complementary
#B4AA31 #317CB4 #6931B4
monochromatic
#544F17 #847D24 #B4AA31 #D0C652 #DDD682

Accessibility & contrast

On white

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

On black

8.74
#B4AA31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4AA31
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4AA31#FFFFFF#000000##000000
##B4AA311.002.408.748.74
#FFFFFF2.401.0021.0021.00
#0000008.7421.001.001.00
##0000008.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A41B
Deuteranopia (green-blind)
#BDAA3A
Tritanopia (blue-blind)
#C29E92
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #b4aa31;
/* rgb */ color: rgb(180, 170, 49);
/* oklch */ color: oklch(72.5% 0.137 104.5);
Tailwind
colors: {
  custom: {
    50: '#cec372',
    500: '#b4aa31',
    950: '#000000',
  },
}
SCSS
$custom: #b4aa31;
$custom-light: #cec372;
$custom-dark: #000000;
JSON
{
  "hex": "#b4aa31",
  "rgb": {
    "r": 180,
    "g": 170,
    "b": 49
  },
  "hsl": {
    "h": 55.42,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.72508,
    "c": 0.13684,
    "h": 104.5
  },
  "luminance": 0.38675
}

Semantic roles & 50–950 ramp

primary
#B4AA31
secondary
#7B80C6
accent
#53E047
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B4AA31

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

Preview Lab → · Contrast checker → · Palette generator →

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