#B4B41F#B4B41F

#B4B41F is a light, vivid yellow. Relative luminance 0.424; OKLCH L 74.6% C 0.155 H 109.6°. Best body text is #000000 at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#B4B41F
RGBrgb(180, 180, 31)
HSLhsl(60, 71%, 41%)
HSVhsv(60, 83%, 71%)
CMYKcmyk(0%, 0%, 82.8%, 29.4%)
CIE-LABlab(71.18, -16.05, 67.87)
CIE-LCHlch(71.18, 69.74, 103.30°)
OKLaboklab(74.6% -0.0521 0.1461)
OKLCHoklch(74.6% 0.155 109.6)
XYZxyz(35.3924, 42.4459, 7.6246)
Luminance0.4244 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4B41F #1F1FB4
analogous
#B46A1F #B4B41F #6AB41F
triadic
#B4B41F #1FB4B4 #B41FB4
tetradic
#B4B41F #1FB46A #1F1FB4 #B41F6A
square
#B4B41F #1FB46A #1F1FB4 #B41F6A
split-complementary
#B4B41F #1F6AB4 #6A1FB4
monochromatic
#4C4C0D #808016 #B4B41F #DCDC34 #E5E568

Accessibility & contrast

On white

2.21
#B4B41F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.49
#B4B41F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4B41F
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4B41F#FFFFFF#000000##000000
##B4B41F1.002.219.499.49
#FFFFFF2.211.0021.0021.00
#0000009.4921.001.001.00
##0000009.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AC00
Deuteranopia (green-blind)
#C5B02E
Tritanopia (blue-blind)
#C1A89A
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #b4b41f;
/* rgb */ color: rgb(180, 180, 31);
/* oklch */ color: oklch(74.6% 0.155 109.6);
Tailwind
colors: {
  custom: {
    50: '#cfca6b',
    500: '#b4b41f',
    950: '#000000',
  },
}
SCSS
$custom: #b4b41f;
$custom-light: #cfca6b;
$custom-dark: #000000;
JSON
{
  "hex": "#b4b41f",
  "rgb": {
    "r": 180,
    "g": 180,
    "b": 31
  },
  "hsl": {
    "h": 60,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.74604,
    "c": 0.15512,
    "h": 109.6
  },
  "luminance": 0.42445
}

Semantic roles & 50–950 ramp

primary
#B4B41F
secondary
#6464CB
accent
#3AED3A
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141307
muted
#83827A

Preview Lab

Preview with #B4B41F

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

Preview Lab → · Contrast checker → · Palette generator →

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