#B4B331#B4B331

#B4B331 is a light, vivid yellow. Relative luminance 0.422; OKLCH L 74.5% C 0.145 H 109.0°. Best body text is #000000 at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#B4B331
RGBrgb(180, 179, 49)
HSLhsl(60, 57%, 45%)
HSVhsv(60, 73%, 71%)
CMYKcmyk(0%, 0.6%, 72.8%, 29.4%)
CIE-LABlab(70.99, -14.86, 62.30)
CIE-LCHlch(70.99, 64.04, 103.42°)
OKLaboklab(74.48% -0.0474 0.1375)
OKLCHoklch(74.48% 0.145 109)
XYZxyz(35.4982, 42.1663, 9.1741)
Luminance0.4217 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4B331 #3132B4
analogous
#B47231 #B4B331 #74B431
triadic
#B4B331 #31B4B3 #B331B4
tetradic
#B4B331 #31B472 #3132B4 #B43174
square
#B4B331 #31B472 #3132B4 #B43174
split-complementary
#B4B331 #3174B4 #7231B4
monochromatic
#545317 #848324 #B4B331 #D0CF52 #DDDC82

Accessibility & contrast

On white

2.23
#B4B331 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.43
#B4B331 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4B331
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4B331#FFFFFF#000000##000000
##B4B3311.002.239.439.43
#FFFFFF2.231.0021.0021.00
#0000009.4321.001.001.00
##0000009.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AB18
Deuteranopia (green-blind)
#C3B03B
Tritanopia (blue-blind)
#C1A79A
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #b4b331;
/* rgb */ color: rgb(180, 179, 49);
/* oklch */ color: oklch(74.5% 0.145 109.0);
Tailwind
colors: {
  custom: {
    50: '#cec973',
    500: '#b4b331',
    950: '#000000',
  },
}
SCSS
$custom: #b4b331;
$custom-light: #cec973;
$custom-dark: #000000;
JSON
{
  "hex": "#b4b331",
  "rgb": {
    "r": 180,
    "g": 179,
    "b": 49
  },
  "hsl": {
    "h": 59.542,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.74477,
    "c": 0.1454,
    "h": 109
  },
  "luminance": 0.42165
}

Semantic roles & 50–950 ramp

primary
#B4B331
secondary
#7B7BC6
accent
#49E047
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B4B331

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

Preview Lab → · Contrast checker → · Palette generator →

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