#B4B31B#B4B31B

#B4B31B is a light, vivid yellow. Relative luminance 0.420; OKLCH L 74.4% C 0.156 H 109.2°. Best body text is #000000 at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#B4B31B
RGBrgb(180, 179, 27)
HSLhsl(60, 74%, 41%)
HSVhsv(60, 85%, 71%)
CMYKcmyk(0%, 0.6%, 85%, 29.4%)
CIE-LABlab(70.89, -15.65, 68.57)
CIE-LCHlch(70.89, 70.33, 102.86°)
OKLaboklab(74.37% -0.0513 0.1469)
OKLCHoklch(74.37% 0.156 109.2)
XYZxyz(35.1417, 42.0238, 7.2970)
Luminance0.4202 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4B31B #1B1CB4
analogous
#B4661B #B4B31B #68B41B
triadic
#B4B31B #1BB4B3 #B31BB4
tetradic
#B4B31B #1BB466 #1B1CB4 #B41B68
square
#B4B31B #1BB466 #1B1CB4 #B41B68
split-complementary
#B4B31B #1B68B4 #661BB4
monochromatic
#4A490B #7F7E13 #B4B31B #DFDE2D #E7E762

Accessibility & contrast

On white

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

On black

9.40
#B4B31B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4B31B
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4B31B#FFFFFF#000000##000000
##B4B31B1.002.239.409.40
#FFFFFF2.231.0021.0021.00
#0000009.4021.001.001.00
##0000009.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AB00
Deuteranopia (green-blind)
#C4B02B
Tritanopia (blue-blind)
#C2A799
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #b4b31b;
/* rgb */ color: rgb(180, 179, 27);
/* oklch */ color: oklch(74.4% 0.156 109.2);
Tailwind
colors: {
  custom: {
    50: '#cfc96a',
    500: '#b4b31b',
    950: '#000000',
  },
}
SCSS
$custom: #b4b31b;
$custom-light: #cfc96a;
$custom-dark: #000000;
JSON
{
  "hex": "#b4b31b",
  "rgb": {
    "r": 180,
    "g": 179,
    "b": 27
  },
  "hsl": {
    "h": 59.608,
    "s": 73.913,
    "l": 40.588
  },
  "oklch": {
    "l": 0.74368,
    "c": 0.15563,
    "h": 109.2
  },
  "luminance": 0.42023
}

Semantic roles & 50–950 ramp

primary
#B4B31B
secondary
#5F5FCC
accent
#38F137
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141307
muted
#83827A

Preview Lab

Preview with #B4B31B

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

Preview Lab → · Contrast checker → · Palette generator →

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