#B4B31A#B4B31A

#B4B31A 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#B4B31A
RGBrgb(180, 179, 26)
HSLhsl(60, 75%, 40%)
HSVhsv(60, 86%, 71%)
CMYKcmyk(0%, 0.6%, 85.6%, 29.4%)
CIE-LABlab(70.88, -15.67, 68.79)
CIE-LCHlch(70.88, 70.55, 102.84°)
OKLaboklab(74.36% -0.0514 0.1473)
OKLCHoklch(74.36% 0.156 109.2)
XYZxyz(35.1304, 42.0192, 7.2371)
Luminance0.4202 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4B31A #1A1BB4
analogous
#B4661A #B4B31A #68B41A
triadic
#B4B31A #1AB4B3 #B31AB4
tetradic
#B4B31A #1AB466 #1A1BB4 #B41A68
square
#B4B31A #1AB466 #1A1BB4 #B41A68
split-complementary
#B4B31A #1A68B4 #661AB4
monochromatic
#49490B #7F7E12 #B4B31A #E0DF2B #E8E760

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B4B31A#FFFFFF#000000##000000
##B4B31A1.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: #b4b31a;
/* rgb */ color: rgb(180, 179, 26);
/* oklch */ color: oklch(74.4% 0.156 109.2);
Tailwind
colors: {
  custom: {
    50: '#cfc969',
    500: '#b4b31a',
    950: '#000000',
  },
}
SCSS
$custom: #b4b31a;
$custom-light: #cfc969;
$custom-dark: #000000;
JSON
{
  "hex": "#b4b31a",
  "rgb": {
    "r": 180,
    "g": 179,
    "b": 26
  },
  "hsl": {
    "h": 59.61,
    "s": 74.757,
    "l": 40.392
  },
  "oklch": {
    "l": 0.74364,
    "c": 0.15597,
    "h": 109.2
  },
  "luminance": 0.42018
}

Semantic roles & 50–950 ramp

primary
#B4B31A
secondary
#5D5ECC
accent
#38F136
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141307
muted
#83827A

Preview Lab

Preview with #B4B31A

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

Preview Lab → · Contrast checker → · Palette generator →

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