#B4A41F#B4A41F

#B4A41F is a light, vivid yellow. Relative luminance 0.364; OKLCH L 71.1% C 0.141 H 101.9°. Best body text is #000000 at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#B4A41F
RGBrgb(180, 164, 31)
HSLhsl(54, 71%, 41%)
HSVhsv(54, 83%, 71%)
CMYKcmyk(0%, 8.9%, 82.8%, 29.4%)
CIE-LABlab(66.79, -7.77, 64.14)
CIE-LCHlch(66.79, 64.61, 96.90°)
OKLaboklab(71.11% -0.029 0.138)
OKLCHoklch(71.11% 0.141 101.9)
XYZxyz(32.3468, 36.3547, 6.6094)
Luminance0.3635 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4A41F #1F2FB4
analogous
#B45A1F #B4A41F #7AB41F
triadic
#B4A41F #1FB4A4 #A41FB4
tetradic
#B4A41F #1FB45A #1F2FB4 #B41F7A
square
#B4A41F #1FB45A #1F2FB4 #B41F7A
split-complementary
#B4A41F #1F7AB4 #5A1FB4
monochromatic
#4C450D #807416 #B4A41F #DCCA34 #E5D868

Accessibility & contrast

On white

2.54
#B4A41F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.27
#B4A41F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4A41F
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4A41F#FFFFFF#000000##000000
##B4A41F1.002.548.278.27
#FFFFFF2.541.0021.0021.00
#0000008.2721.001.001.00
##0000008.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B49F00
Deuteranopia (green-blind)
#B9A52B
Tritanopia (blue-blind)
#C2988C
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #b4a41f;
/* rgb */ color: rgb(180, 164, 31);
/* oklch */ color: oklch(71.1% 0.141 101.9);
Tailwind
colors: {
  custom: {
    50: '#cfbe69',
    500: '#b4a41f',
    950: '#000000',
  },
}
SCSS
$custom: #b4a41f;
$custom-light: #cfbe69;
$custom-dark: #000000;
JSON
{
  "hex": "#b4a41f",
  "rgb": {
    "r": 180,
    "g": 164,
    "b": 31
  },
  "hsl": {
    "h": 53.557,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.71107,
    "c": 0.14101,
    "h": 101.9
  },
  "luminance": 0.36353
}

Semantic roles & 50–950 ramp

primary
#B4A41F
secondary
#646FCB
accent
#4EED3A
background
#FDFBF6
surface
#FAF6EB
border
#D3D0C6
text
#141207
muted
#83817A

Preview Lab

Preview with #B4A41F

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

Preview Lab → · Contrast checker → · Palette generator →

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