#B4B731#B4B731

#B4B731 is a light, vivid yellow. Relative luminance 0.438; OKLCH L 75.4% C 0.149 H 110.8°. Best body text is #000000 at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#B4B731
RGBrgb(180, 183, 49)
HSLhsl(61, 58%, 45%)
HSVhsv(61, 73%, 72%)
CMYKcmyk(1.6%, 0%, 73.2%, 28.2%)
CIE-LABlab(72.09, -16.89, 63.34)
CIE-LCHlch(72.09, 65.56, 104.93°)
OKLaboklab(75.36% -0.0531 0.1397)
OKLCHoklch(75.36% 0.149 110.8)
XYZxyz(36.3115, 43.7930, 9.4452)
Luminance0.4379 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4B731 #3431B7
analogous
#B77731 #B4B731 #71B731
triadic
#B4B731 #31B4B7 #B731B4
tetradic
#B4B731 #31B777 #3431B7 #B73171
square
#B4B731 #31B777 #3431B7 #B73171
split-complementary
#B4B731 #3171B7 #7731B7
monochromatic
#555617 #858724 #B4B731 #CED154 #DCDE84

Accessibility & contrast

On white

2.15
#B4B731 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.76
#B4B731 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4B731
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4B731#FFFFFF#000000##000000
##B4B7311.002.159.769.76
#FFFFFF2.151.0021.0021.00
#0000009.7621.001.001.00
##0000009.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6AF15
Deuteranopia (green-blind)
#C7B23C
Tritanopia (blue-blind)
#C1AB9D
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #b4b731;
/* rgb */ color: rgb(180, 183, 49);
/* oklch */ color: oklch(75.4% 0.149 110.8);
Tailwind
colors: {
  custom: {
    50: '#cecc73',
    500: '#b4b731',
    950: '#000000',
  },
}
SCSS
$custom: #b4b731;
$custom-light: #cecc73;
$custom-dark: #000000;
JSON
{
  "hex": "#b4b731",
  "rgb": {
    "r": 180,
    "g": 183,
    "b": 49
  },
  "hsl": {
    "h": 61.343,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.7536,
    "c": 0.14942,
    "h": 110.8
  },
  "luminance": 0.43792
}

Semantic roles & 50–950 ramp

primary
#B4B731
secondary
#7E7CC8
accent
#47E14A
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B4B731

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

Preview Lab → · Contrast checker → · Palette generator →

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