#B4B31E#B4B31E

#B4B31E 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#B4B31E
RGBrgb(180, 179, 30)
HSLhsl(60, 71%, 41%)
HSVhsv(60, 83%, 71%)
CMYKcmyk(0%, 0.6%, 83.3%, 29.4%)
CIE-LABlab(70.90, -15.57, 67.88)
CIE-LCHlch(70.90, 69.64, 102.92°)
OKLaboklab(74.38% -0.0509 0.146)
OKLCHoklch(74.38% 0.155 109.2)
XYZxyz(35.1782, 42.0384, 7.4892)
Luminance0.4204 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4B31E #1E1FB4
analogous
#B4681E #B4B31E #6AB41E
triadic
#B4B31E #1EB4B3 #B31EB4
tetradic
#B4B31E #1EB468 #1E1FB4 #B41E6A
square
#B4B31E #1EB468 #1E1FB4 #B41E6A
split-complementary
#B4B31E #1E6AB4 #681EB4
monochromatic
#4B4B0D #807F15 #B4B31E #DDDC32 #E6E567

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B4B31E#FFFFFF#000000##000000
##B4B31E1.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: #b4b31e;
/* rgb */ color: rgb(180, 179, 30);
/* oklch */ color: oklch(74.4% 0.155 109.2);
Tailwind
colors: {
  custom: {
    50: '#cfc96b',
    500: '#b4b31e',
    950: '#000000',
  },
}
SCSS
$custom: #b4b31e;
$custom-light: #cfc96b;
$custom-dark: #000000;
JSON
{
  "hex": "#b4b31e",
  "rgb": {
    "r": 180,
    "g": 179,
    "b": 30
  },
  "hsl": {
    "h": 59.6,
    "s": 71.429,
    "l": 41.176
  },
  "oklch": {
    "l": 0.74379,
    "c": 0.15456,
    "h": 109.2
  },
  "luminance": 0.42037
}

Semantic roles & 50–950 ramp

primary
#B4B31E
secondary
#6364CB
accent
#3BEE3A
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141307
muted
#83827A

Preview Lab

Preview with #B4B31E

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

Preview Lab → · Contrast checker → · Palette generator →

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