#B4A01B#B4A01B

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

Color values

HEX#B4A01B
RGBrgb(180, 160, 27)
HSLhsl(52, 74%, 41%)
HSVhsv(52, 85%, 71%)
CMYKcmyk(0%, 11.1%, 85%, 29.4%)
CIE-LABlab(65.69, -5.76, 64.26)
CIE-LCHlch(65.69, 64.52, 95.12°)
OKLaboklab(70.23% -0.0237 0.1375)
OKLCHoklch(70.23% 0.14 99.8)
XYZxyz(31.5927, 34.9257, 6.1140)
Luminance0.3492 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4A01B #1B2FB4
analogous
#B4531B #B4A01B #7BB41B
triadic
#B4A01B #1BB4A0 #A01BB4
tetradic
#B4A01B #1BB453 #1B2FB4 #B41B7B
square
#B4A01B #1BB453 #1B2FB4 #B41B7B
split-complementary
#B4A01B #1B7BB4 #531BB4
monochromatic
#4A410B #7F7113 #B4A01B #DFC82D #E7D662

Accessibility & contrast

On white

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

On black

7.98
#B4A01B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4A01B
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4A01B#FFFFFF#000000##000000
##B4A01B1.002.637.987.98
#FFFFFF2.631.0021.0021.00
#0000007.9821.001.001.00
##0000007.9821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b4a01b;
/* rgb */ color: rgb(180, 160, 27);
/* oklch */ color: oklch(70.2% 0.140 99.8);
Tailwind
colors: {
  custom: {
    50: '#cfbb67',
    500: '#b4a01b',
    950: '#000000',
  },
}
SCSS
$custom: #b4a01b;
$custom-light: #cfbb67;
$custom-dark: #000000;
JSON
{
  "hex": "#b4a01b",
  "rgb": {
    "r": 180,
    "g": 160,
    "b": 27
  },
  "hsl": {
    "h": 52.157,
    "s": 73.913,
    "l": 40.588
  },
  "oklch": {
    "l": 0.70229,
    "c": 0.13952,
    "h": 99.8
  },
  "luminance": 0.34924
}

Semantic roles & 50–950 ramp

primary
#B4A01B
secondary
#5F6DCC
accent
#4FF137
background
#FDFBF6
surface
#FAF6EB
border
#D3D0C6
text
#141107
muted
#83807A

Preview Lab

Preview with #B4A01B

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

Preview Lab → · Contrast checker → · Palette generator →

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