#B4B31D#B4B31D

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

Color values

HEX#B4B31D
RGBrgb(180, 179, 29)
HSLhsl(60, 72%, 41%)
HSVhsv(60, 84%, 71%)
CMYKcmyk(0%, 0.6%, 83.9%, 29.4%)
CIE-LABlab(70.89, -15.60, 68.11)
CIE-LCHlch(70.89, 69.88, 102.90°)
OKLaboklab(74.38% -0.051 0.1463)
OKLCHoklch(74.38% 0.155 109.2)
XYZxyz(35.1657, 42.0333, 7.4230)
Luminance0.4203 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4B31D #1D1EB4
analogous
#B4671D #B4B31D #69B41D
triadic
#B4B31D #1DB4B3 #B31DB4
tetradic
#B4B31D #1DB467 #1D1EB4 #B41D69
square
#B4B31D #1DB467 #1D1EB4 #B41D69
split-complementary
#B4B31D #1D69B4 #671DB4
monochromatic
#4B4A0C #7F7F15 #B4B31D #DEDD30 #E6E565

Accessibility & contrast

On white

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

On black

9.41
#B4B31D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4B31D
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4B31D#FFFFFF#000000##000000
##B4B31D1.002.239.419.41
#FFFFFF2.231.0021.0021.00
#0000009.4121.001.001.00
##0000009.4121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b4b31d;
/* rgb */ color: rgb(180, 179, 29);
/* oklch */ color: oklch(74.4% 0.155 109.2);
Tailwind
colors: {
  custom: {
    50: '#cfc96a',
    500: '#b4b31d',
    950: '#000000',
  },
}
SCSS
$custom: #b4b31d;
$custom-light: #cfc96a;
$custom-dark: #000000;
JSON
{
  "hex": "#b4b31d",
  "rgb": {
    "r": 180,
    "g": 179,
    "b": 29
  },
  "hsl": {
    "h": 59.603,
    "s": 72.249,
    "l": 40.98
  },
  "oklch": {
    "l": 0.74375,
    "c": 0.15493,
    "h": 109.2
  },
  "luminance": 0.42032
}

Semantic roles & 50–950 ramp

primary
#B4B31D
secondary
#6162CB
accent
#3AEF39
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141307
muted
#83827A

Preview Lab

Preview with #B4B31D

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

Preview Lab → · Contrast checker → · Palette generator →

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