#B4B031#B4B031

#B4B031 is a light, vivid yellow. Relative luminance 0.410; OKLCH L 73.8% C 0.142 H 107.6°. Best body text is #000000 at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#B4B031
RGBrgb(180, 176, 49)
HSLhsl(58, 57%, 45%)
HSVhsv(58, 73%, 71%)
CMYKcmyk(0%, 2.2%, 72.8%, 29.4%)
CIE-LABlab(70.16, -13.33, 61.51)
CIE-LCHlch(70.16, 62.93, 102.22°)
OKLaboklab(73.82% -0.0431 0.1358)
OKLCHoklch(73.82% 0.142 107.6)
XYZxyz(34.9034, 40.9769, 8.9759)
Luminance0.4098 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4B031 #3135B4
analogous
#B46F31 #B4B031 #76B431
triadic
#B4B031 #31B4B0 #B031B4
tetradic
#B4B031 #31B46F #3135B4 #B43176
square
#B4B031 #31B46F #3135B4 #B43176
split-complementary
#B4B031 #3176B4 #6F31B4
monochromatic
#545217 #848124 #B4B031 #D0CC52 #DDDA82

Accessibility & contrast

On white

2.28
#B4B031 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.20
#B4B031 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4B031
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4B031#FFFFFF#000000##000000
##B4B0311.002.289.209.20
#FFFFFF2.281.0021.0021.00
#0000009.2021.001.001.00
##0000009.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFA919
Deuteranopia (green-blind)
#C1AE3A
Tritanopia (blue-blind)
#C1A497
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #b4b031;
/* rgb */ color: rgb(180, 176, 49);
/* oklch */ color: oklch(73.8% 0.142 107.6);
Tailwind
colors: {
  custom: {
    50: '#cec772',
    500: '#b4b031',
    950: '#000000',
  },
}
SCSS
$custom: #b4b031;
$custom-light: #cec772;
$custom-dark: #000000;
JSON
{
  "hex": "#b4b031",
  "rgb": {
    "r": 180,
    "g": 176,
    "b": 49
  },
  "hsl": {
    "h": 58.168,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.73818,
    "c": 0.14246,
    "h": 107.6
  },
  "luminance": 0.40976
}

Semantic roles & 50–950 ramp

primary
#B4B031
secondary
#7B7DC6
accent
#4CE047
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B4B031

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

Preview Lab → · Contrast checker → · Palette generator →

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