#B5AC31#B5AC31

#B5AC31 is a light, vivid yellow. Relative luminance 0.396; OKLCH L 73.0% C 0.139 H 105.1°. Best body text is #000000 at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#B5AC31
RGBrgb(181, 172, 49)
HSLhsl(56, 57%, 45%)
HSVhsv(56, 73%, 71%)
CMYKcmyk(0%, 5%, 72.9%, 29%)
CIE-LABlab(69.15, -10.82, 60.57)
CIE-LCHlch(69.15, 61.53, 100.13°)
OKLaboklab(73.03% -0.0361 0.1338)
OKLCHoklch(73.03% 0.139 105.1)
XYZxyz(34.3644, 39.5519, 8.7293)
Luminance0.3955 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5AC31 #313AB5
analogous
#B56A31 #B5AC31 #7CB531
triadic
#B5AC31 #31B5AC #AC31B5
tetradic
#B5AC31 #31B56A #313AB5 #B5317C
square
#B5AC31 #31B56A #313AB5 #B5317C
split-complementary
#B5AC31 #317CB5 #6A31B5
monochromatic
#555017 #857E24 #B5AC31 #D0C853 #DDD783

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B5AC31#FFFFFF#000000##000000
##B5AC311.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)
#BBA61B
Deuteranopia (green-blind)
#BEAB3A
Tritanopia (blue-blind)
#C3A094
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #b5ac31;
/* rgb */ color: rgb(181, 172, 49);
/* oklch */ color: oklch(73.0% 0.139 105.1);
Tailwind
colors: {
  custom: {
    50: '#cfc472',
    500: '#b5ac31',
    950: '#000000',
  },
}
SCSS
$custom: #b5ac31;
$custom-light: #cfc472;
$custom-dark: #000000;
JSON
{
  "hex": "#b5ac31",
  "rgb": {
    "r": 181,
    "g": 172,
    "b": 49
  },
  "hsl": {
    "h": 55.909,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.73034,
    "c": 0.13856,
    "h": 105.1
  },
  "luminance": 0.39551
}

Semantic roles & 50–950 ramp

primary
#B5AC31
secondary
#7B80C7
accent
#52E147
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B5AC31

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

Preview Lab → · Contrast checker → · Palette generator →

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