#B4A51F#B4A51F

#B4A51F is a light, vivid yellow. Relative luminance 0.367; OKLCH L 71.3% C 0.142 H 102.4°. Best body text is #000000 at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#B4A51F
RGBrgb(180, 165, 31)
HSLhsl(54, 71%, 41%)
HSVhsv(54, 83%, 71%)
CMYKcmyk(0%, 8.3%, 82.8%, 29.4%)
CIE-LABlab(67.06, -8.29, 64.37)
CIE-LCHlch(67.06, 64.90, 97.34°)
OKLaboklab(71.32% -0.0305 0.1385)
OKLCHoklch(71.32% 0.142 102.4)
XYZxyz(32.5264, 36.7140, 6.6693)
Luminance0.3671 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4A51F #1F2EB4
analogous
#B45B1F #B4A51F #79B41F
triadic
#B4A51F #1FB4A5 #A51FB4
tetradic
#B4A51F #1FB45B #1F2EB4 #B41F79
square
#B4A51F #1FB45B #1F2EB4 #B41F79
split-complementary
#B4A51F #1F79B4 #5B1FB4
monochromatic
#4C450D #807516 #B4A51F #DCCB34 #E5D968

Accessibility & contrast

On white

2.52
#B4A51F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.34
#B4A51F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4A51F
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4A51F#FFFFFF#000000##000000
##B4A51F1.002.528.348.34
#FFFFFF2.521.0021.0021.00
#0000008.3421.001.001.00
##0000008.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A000
Deuteranopia (green-blind)
#BAA62B
Tritanopia (blue-blind)
#C2998D
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #b4a51f;
/* rgb */ color: rgb(180, 165, 31);
/* oklch */ color: oklch(71.3% 0.142 102.4);
Tailwind
colors: {
  custom: {
    50: '#cfbf69',
    500: '#b4a51f',
    950: '#000000',
  },
}
SCSS
$custom: #b4a51f;
$custom-light: #cfbf69;
$custom-dark: #000000;
JSON
{
  "hex": "#b4a51f",
  "rgb": {
    "r": 180,
    "g": 165,
    "b": 31
  },
  "hsl": {
    "h": 53.96,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.71323,
    "c": 0.14183,
    "h": 102.4
  },
  "luminance": 0.36712
}

Semantic roles & 50–950 ramp

primary
#B4A51F
secondary
#646FCB
accent
#4CED3A
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141207
muted
#83817A

Preview Lab

Preview with #B4A51F

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

Preview Lab → · Contrast checker → · Palette generator →

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