#B4AC31#B4AC31

#B4AC31 is a light, vivid yellow. Relative luminance 0.394; OKLCH L 72.9% C 0.139 H 105.6°. Best body text is #000000 at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#B4AC31
RGBrgb(180, 172, 49)
HSLhsl(56, 57%, 45%)
HSVhsv(56, 73%, 71%)
CMYKcmyk(0%, 4.4%, 72.8%, 29.4%)
CIE-LABlab(69.06, -11.26, 60.46)
CIE-LCHlch(69.06, 61.50, 100.55°)
OKLaboklab(72.94% -0.0373 0.1336)
OKLCHoklch(72.94% 0.139 105.6)
XYZxyz(34.1307, 39.4314, 8.7183)
Luminance0.3943 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4AC31 #3139B4
analogous
#B46B31 #B4AC31 #7AB431
triadic
#B4AC31 #31B4AC #AC31B4
tetradic
#B4AC31 #31B46B #3139B4 #B4317A
square
#B4AC31 #31B46B #3139B4 #B4317A
split-complementary
#B4AC31 #317AB4 #6B31B4
monochromatic
#545017 #847E24 #B4AC31 #D0C852 #DDD882

Accessibility & contrast

On white

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

On black

8.89
#B4AC31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4AC31
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4AC31#FFFFFF#000000##000000
##B4AC311.002.368.898.89
#FFFFFF2.361.0021.0021.00
#0000008.8921.001.001.00
##0000008.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#BBA61B
Deuteranopia (green-blind)
#BEAB3A
Tritanopia (blue-blind)
#C1A094
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #b4ac31;
/* rgb */ color: rgb(180, 172, 49);
/* oklch */ color: oklch(72.9% 0.139 105.6);
Tailwind
colors: {
  custom: {
    50: '#cec472',
    500: '#b4ac31',
    950: '#000000',
  },
}
SCSS
$custom: #b4ac31;
$custom-light: #cec472;
$custom-dark: #000000;
JSON
{
  "hex": "#b4ac31",
  "rgb": {
    "r": 180,
    "g": 172,
    "b": 49
  },
  "hsl": {
    "h": 56.336,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.72944,
    "c": 0.13867,
    "h": 105.6
  },
  "luminance": 0.3943
}

Semantic roles & 50–950 ramp

primary
#B4AC31
secondary
#7B7FC6
accent
#51E047
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B4AC31

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

Preview Lab → · Contrast checker → · Palette generator →

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