#B4A72A#B4A72A

#B4A72A is a light, vivid yellow. Relative luminance 0.375; OKLCH L 71.8% C 0.138 H 103.2°. Best body text is #000000 at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#B4A72A
RGBrgb(180, 167, 42)
HSLhsl(54, 62%, 44%)
HSVhsv(54, 77%, 71%)
CMYKcmyk(0%, 7.2%, 76.7%, 29.4%)
CIE-LABlab(67.66, -8.96, 61.57)
CIE-LCHlch(67.66, 62.22, 98.28°)
OKLaboklab(71.81% -0.0315 0.1346)
OKLCHoklch(71.81% 0.138 103.2)
XYZxyz(33.0605, 37.5093, 7.6886)
Luminance0.3751 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4A72A #2A37B4
analogous
#B4622A #B4A72A #7CB42A
triadic
#B4A72A #2AB4A7 #A72AB4
tetradic
#B4A72A #2AB462 #2A37B4 #B42A7C
square
#B4A72A #2AB462 #2A37B4 #B42A7C
split-complementary
#B4A72A #2A7CB4 #622AB4
monochromatic
#514B13 #82791E #B4A72A #D4C747 #E0D679

Accessibility & contrast

On white

2.47
#B4A72A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.50
#B4A72A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4A72A
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4A72A#FFFFFF#000000##000000
##B4A72A1.002.478.508.50
#FFFFFF2.471.0021.0021.00
#0000008.5021.001.001.00
##0000008.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A10D
Deuteranopia (green-blind)
#BBA733
Tritanopia (blue-blind)
#C29B8F
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #b4a72a;
/* rgb */ color: rgb(180, 167, 42);
/* oklch */ color: oklch(71.8% 0.138 103.2);
Tailwind
colors: {
  custom: {
    50: '#cec06e',
    500: '#b4a72a',
    950: '#000000',
  },
}
SCSS
$custom: #b4a72a;
$custom-light: #cec06e;
$custom-dark: #000000;
JSON
{
  "hex": "#b4a72a",
  "rgb": {
    "r": 180,
    "g": 167,
    "b": 42
  },
  "hsl": {
    "h": 54.348,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.71813,
    "c": 0.13824,
    "h": 103.2
  },
  "luminance": 0.37508
}

Semantic roles & 50–950 ramp

primary
#B4A72A
secondary
#727AC8
accent
#52E543
background
#FDFBF6
surface
#FAF7EC
border
#D3D0C7
text
#141208
muted
#83817B

Preview Lab

Preview with #B4A72A

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

Preview Lab → · Contrast checker → · Palette generator →

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