#B4A031#B4A031

#B4A031 is a light, vivid yellow. Relative luminance 0.351; OKLCH L 70.4% C 0.128 H 98.7°. Best body text is #000000 at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#B4A031
RGBrgb(180, 160, 49)
HSLhsl(51, 57%, 45%)
HSVhsv(51, 73%, 71%)
CMYKcmyk(0%, 11.1%, 72.8%, 29.4%)
CIE-LABlab(65.80, -4.94, 57.30)
CIE-LCHlch(65.80, 57.51, 94.93°)
OKLaboklab(70.35% -0.0194 0.1269)
OKLCHoklch(70.35% 0.128 98.7)
XYZxyz(31.9491, 35.0682, 7.9911)
Luminance0.3507 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4A031 #3145B4
analogous
#B45F31 #B4A031 #86B431
triadic
#B4A031 #31B4A0 #A031B4
tetradic
#B4A031 #31B45F #3145B4 #B43186
square
#B4A031 #31B45F #3145B4 #B43186
split-complementary
#B4A031 #3186B4 #5F31B4
monochromatic
#544A17 #847524 #B4A031 #D0BD52 #DDCF82

Accessibility & contrast

On white

2.62
#B4A031 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.01
#B4A031 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4A031
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4A031#FFFFFF#000000##000000
##B4A0311.002.628.018.01
#FFFFFF2.621.0021.0021.00
#0000008.0121.001.001.00
##0000008.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09C1F
Deuteranopia (green-blind)
#B5A338
Tritanopia (blue-blind)
#C2948A
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #b4a031;
/* rgb */ color: rgb(180, 160, 49);
/* oklch */ color: oklch(70.4% 0.128 98.7);
Tailwind
colors: {
  custom: {
    50: '#cebb71',
    500: '#b4a031',
    950: '#000000',
  },
}
SCSS
$custom: #b4a031;
$custom-light: #cebb71;
$custom-dark: #000000;
JSON
{
  "hex": "#b4a031",
  "rgb": {
    "r": 180,
    "g": 160,
    "b": 49
  },
  "hsl": {
    "h": 50.84,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.70353,
    "c": 0.12837,
    "h": 98.7
  },
  "luminance": 0.35067
}

Semantic roles & 50–950 ramp

primary
#B4A031
secondary
#7B86C6
accent
#5FE047
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141108
muted
#83807B

Preview Lab

Preview with #B4A031

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

Preview Lab → · Contrast checker → · Palette generator →

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