#B4B931#B4B931

#B4B931 is a light, vivid yellow. Relative luminance 0.446; OKLCH L 75.8% C 0.151 H 111.6°. Best body text is #000000 at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#B4B931
RGBrgb(180, 185, 49)
HSLhsl(62, 58%, 46%)
HSVhsv(62, 74%, 73%)
CMYKcmyk(2.7%, 0%, 73.5%, 27.5%)
CIE-LABlab(72.64, -17.90, 63.87)
CIE-LCHlch(72.64, 66.33, 105.66°)
OKLaboklab(75.8% -0.0559 0.1408)
OKLCHoklch(75.8% 0.151 111.6)
XYZxyz(36.7270, 44.6239, 9.5837)
Luminance0.4462 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4B931 #3631B9
analogous
#B97A31 #B4B931 #70B931
triadic
#B4B931 #31B4B9 #B931B4
tetradic
#B4B931 #31B97A #3631B9 #B93170
square
#B4B931 #31B97A #3631B9 #B93170
split-complementary
#B4B931 #3170B9 #7A31B9
monochromatic
#565817 #858924 #B4B931 #CDD255 #DCDF86

Accessibility & contrast

On white

2.12
#B4B931 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.92
#B4B931 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4B931
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4B931#FFFFFF#000000##000000
##B4B9311.002.129.929.92
#FFFFFF2.121.0021.0021.00
#0000009.9221.001.001.00
##0000009.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B014
Deuteranopia (green-blind)
#C8B43C
Tritanopia (blue-blind)
#C1AD9F
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #b4b931;
/* rgb */ color: rgb(180, 185, 49);
/* oklch */ color: oklch(75.8% 0.151 111.6);
Tailwind
colors: {
  custom: {
    50: '#cecd73',
    500: '#b4b931',
    950: '#000000',
  },
}
SCSS
$custom: #b4b931;
$custom-light: #cecd73;
$custom-dark: #000000;
JSON
{
  "hex": "#b4b931",
  "rgb": {
    "r": 180,
    "g": 185,
    "b": 49
  },
  "hsl": {
    "h": 62.206,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.75803,
    "c": 0.15147,
    "h": 111.6
  },
  "luminance": 0.44623
}

Semantic roles & 50–950 ramp

primary
#B4B931
secondary
#807DC8
accent
#46E14C
background
#FDFCF7
surface
#FAF9ED
border
#D3D2C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B4B931

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

Preview Lab → · Contrast checker → · Palette generator →

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