#B4A11F#B4A11F

#B4A11F is a light, vivid yellow. Relative luminance 0.353; OKLCH L 70.5% C 0.139 H 100.2°. Best body text is #000000 at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#B4A11F
RGBrgb(180, 161, 31)
HSLhsl(52, 71%, 41%)
HSVhsv(52, 83%, 71%)
CMYKcmyk(0%, 10.6%, 82.8%, 29.4%)
CIE-LABlab(65.98, -6.18, 63.45)
CIE-LCHlch(65.98, 63.75, 95.56°)
OKLaboklab(70.46% -0.0246 0.1365)
OKLCHoklch(70.46% 0.139 100.2)
XYZxyz(31.8162, 35.2936, 6.4325)
Luminance0.3529 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4A11F #1F32B4
analogous
#B4571F #B4A11F #7DB41F
triadic
#B4A11F #1FB4A1 #A11FB4
tetradic
#B4A11F #1FB457 #1F32B4 #B41F7D
square
#B4A11F #1FB457 #1F32B4 #B41F7D
split-complementary
#B4A11F #1F7DB4 #571FB4
monochromatic
#4C440D #807216 #B4A11F #DCC734 #E5D568

Accessibility & contrast

On white

2.61
#B4A11F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.06
#B4A11F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4A11F
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4A11F#FFFFFF#000000##000000
##B4A11F1.002.618.068.06
#FFFFFF2.611.0021.0021.00
#0000008.0621.001.001.00
##0000008.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19C00
Deuteranopia (green-blind)
#B7A32A
Tritanopia (blue-blind)
#C3948A
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #b4a11f;
/* rgb */ color: rgb(180, 161, 31);
/* oklch */ color: oklch(70.5% 0.139 100.2);
Tailwind
colors: {
  custom: {
    50: '#cfbc68',
    500: '#b4a11f',
    950: '#000000',
  },
}
SCSS
$custom: #b4a11f;
$custom-light: #cfbc68;
$custom-dark: #000000;
JSON
{
  "hex": "#b4a11f",
  "rgb": {
    "r": 180,
    "g": 161,
    "b": 31
  },
  "hsl": {
    "h": 52.349,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.70461,
    "c": 0.13868,
    "h": 100.2
  },
  "luminance": 0.35292
}

Semantic roles & 50–950 ramp

primary
#B4A11F
secondary
#6471CB
accent
#51ED3A
background
#FDFBF6
surface
#FAF6EB
border
#D3D0C6
text
#141107
muted
#83807A

Preview Lab

Preview with #B4A11F

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

Preview Lab → · Contrast checker → · Palette generator →

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