#B5AA31#B5AA31

#B5AA31 is a light, vivid yellow. Relative luminance 0.388; OKLCH L 72.6% C 0.137 H 104.0°. Best body text is #000000 at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#B5AA31
RGBrgb(181, 170, 49)
HSLhsl(55, 57%, 45%)
HSVhsv(55, 73%, 71%)
CMYKcmyk(0%, 6.1%, 72.9%, 29%)
CIE-LABlab(68.60, -9.78, 60.05)
CIE-LCHlch(68.60, 60.84, 99.25°)
OKLaboklab(72.6% -0.0332 0.1327)
OKLCHoklch(72.6% 0.137 104)
XYZxyz(33.9866, 38.7963, 8.6033)
Luminance0.3880 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5AA31 #313CB5
analogous
#B56831 #B5AA31 #7EB531
triadic
#B5AA31 #31B5AA #AA31B5
tetradic
#B5AA31 #31B568 #313CB5 #B5317E
square
#B5AA31 #31B568 #313CB5 #B5317E
split-complementary
#B5AA31 #317EB5 #6831B5
monochromatic
#555017 #857D24 #B5AA31 #D0C653 #DDD683

Accessibility & contrast

On white

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

On black

8.76
#B5AA31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5AA31
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5AA31#FFFFFF#000000##000000
##B5AA311.002.408.768.76
#FFFFFF2.401.0021.0021.00
#0000008.7621.001.001.00
##0000008.7621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b5aa31;
/* rgb */ color: rgb(181, 170, 49);
/* oklch */ color: oklch(72.6% 0.137 104.0);
Tailwind
colors: {
  custom: {
    50: '#cfc372',
    500: '#b5aa31',
    950: '#000000',
  },
}
SCSS
$custom: #b5aa31;
$custom-light: #cfc372;
$custom-dark: #000000;
JSON
{
  "hex": "#b5aa31",
  "rgb": {
    "r": 181,
    "g": 170,
    "b": 49
  },
  "hsl": {
    "h": 55,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.72599,
    "c": 0.13674,
    "h": 104
  },
  "luminance": 0.38795
}

Semantic roles & 50–950 ramp

primary
#B5AA31
secondary
#7B81C7
accent
#54E147
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B5AA31

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

Preview Lab → · Contrast checker → · Palette generator →

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