#B4A331#B4A331

#B4A331 is a light, vivid yellow. Relative luminance 0.361; OKLCH L 71.0% C 0.131 H 100.6°. Best body text is #000000 at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#B4A331
RGBrgb(180, 163, 49)
HSLhsl(52, 57%, 45%)
HSVhsv(52, 73%, 71%)
CMYKcmyk(0%, 9.4%, 72.8%, 29.4%)
CIE-LABlab(66.61, -6.54, 58.09)
CIE-LCHlch(66.61, 58.46, 96.42°)
OKLaboklab(70.99% -0.0239 0.1286)
OKLCHoklch(70.99% 0.131 100.6)
XYZxyz(32.4755, 36.1209, 8.1666)
Luminance0.3612 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4A331 #3142B4
analogous
#B46231 #B4A331 #83B431
triadic
#B4A331 #31B4A3 #A331B4
tetradic
#B4A331 #31B462 #3142B4 #B43183
square
#B4A331 #31B462 #3142B4 #B43183
split-complementary
#B4A331 #3183B4 #6231B4
monochromatic
#544C17 #847724 #B4A331 #D0C052 #DDD182

Accessibility & contrast

On white

2.55
#B4A331 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.22
#B4A331 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4A331
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4A331#FFFFFF#000000##000000
##B4A3311.002.558.228.22
#FFFFFF2.551.0021.0021.00
#0000008.2221.001.001.00
##0000008.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B39E1E
Deuteranopia (green-blind)
#B7A538
Tritanopia (blue-blind)
#C2978D
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #b4a331;
/* rgb */ color: rgb(180, 163, 49);
/* oklch */ color: oklch(71.0% 0.131 100.6);
Tailwind
colors: {
  custom: {
    50: '#cebd71',
    500: '#b4a331',
    950: '#000000',
  },
}
SCSS
$custom: #b4a331;
$custom-light: #cebd71;
$custom-dark: #000000;
JSON
{
  "hex": "#b4a331",
  "rgb": {
    "r": 180,
    "g": 163,
    "b": 49
  },
  "hsl": {
    "h": 52.214,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.70995,
    "c": 0.13077,
    "h": 100.6
  },
  "luminance": 0.36119
}

Semantic roles & 50–950 ramp

primary
#B4A331
secondary
#7B84C6
accent
#5BE047
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B4A331

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

Preview Lab → · Contrast checker → · Palette generator →

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