#B4A01F#B4A01F

#B4A01F is a light, vivid yellow. Relative luminance 0.349; OKLCH L 70.2% C 0.138 H 99.6°. Best body text is #000000 at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#B4A01F
RGBrgb(180, 160, 31)
HSLhsl(52, 71%, 41%)
HSVhsv(52, 83%, 71%)
CMYKcmyk(0%, 11.1%, 82.8%, 29.4%)
CIE-LABlab(65.71, -5.65, 63.21)
CIE-LCHlch(65.71, 63.47, 95.11°)
OKLaboklab(70.25% -0.0231 0.136)
OKLCHoklch(70.25% 0.138 99.6)
XYZxyz(31.6422, 34.9455, 6.3745)
Luminance0.3494 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4A01F #1F33B4
analogous
#B4561F #B4A01F #7EB41F
triadic
#B4A01F #1FB4A0 #A01FB4
tetradic
#B4A01F #1FB456 #1F33B4 #B41F7E
square
#B4A01F #1FB456 #1F33B4 #B41F7E
split-complementary
#B4A01F #1F7EB4 #561FB4
monochromatic
#4C430D #807216 #B4A01F #DCC634 #E5D468

Accessibility & contrast

On white

2.63
#B4A01F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.99
#B4A01F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4A01F
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4A01F#FFFFFF#000000##000000
##B4A01F1.002.637.997.99
#FFFFFF2.631.0021.0021.00
#0000007.9921.001.001.00
##0000007.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09B00
Deuteranopia (green-blind)
#B6A32A
Tritanopia (blue-blind)
#C39389
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #b4a01f;
/* rgb */ color: rgb(180, 160, 31);
/* oklch */ color: oklch(70.2% 0.138 99.6);
Tailwind
colors: {
  custom: {
    50: '#cfbb68',
    500: '#b4a01f',
    950: '#000000',
  },
}
SCSS
$custom: #b4a01f;
$custom-light: #cfbb68;
$custom-dark: #000000;
JSON
{
  "hex": "#b4a01f",
  "rgb": {
    "r": 180,
    "g": 160,
    "b": 31
  },
  "hsl": {
    "h": 51.946,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.70246,
    "c": 0.13793,
    "h": 99.6
  },
  "luminance": 0.34944
}

Semantic roles & 50–950 ramp

primary
#B4A01F
secondary
#6472CB
accent
#52ED3A
background
#FDFBF6
surface
#FAF6EB
border
#D3D0C6
text
#141107
muted
#83807A

Preview Lab

Preview with #B4A01F

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

Preview Lab → · Contrast checker → · Palette generator →

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