#B4A72F#B4A72F

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

Color values

HEX#B4A72F
RGBrgb(180, 167, 47)
HSLhsl(54, 59%, 45%)
HSVhsv(54, 74%, 71%)
CMYKcmyk(0%, 7.2%, 73.9%, 29.4%)
CIE-LABlab(67.69, -8.74, 59.86)
CIE-LCHlch(67.69, 60.50, 98.31°)
OKLaboklab(71.84% -0.0304 0.1319)
OKLCHoklch(71.84% 0.135 103)
XYZxyz(33.1557, 37.5474, 8.1897)
Luminance0.3755 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4A72F #2F3CB4
analogous
#B4642F #B4A72F #7FB42F
triadic
#B4A72F #2FB4A7 #A72FB4
tetradic
#B4A72F #2FB464 #2F3CB4 #B42F7F
square
#B4A72F #2FB464 #2F3CB4 #B42F7F
split-complementary
#B4A72F #2F7FB4 #642FB4
monochromatic
#534D16 #837A22 #B4A72F #D1C44F #DED580

Accessibility & contrast

On white

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

On black

8.51
#B4A72F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4A72F
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4A72F#FFFFFF#000000##000000
##B4A72F1.002.478.518.51
#FFFFFF2.471.0021.0021.00
#0000008.5121.001.001.00
##0000008.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A219
Deuteranopia (green-blind)
#BAA837
Tritanopia (blue-blind)
#C29B90
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #b4a72f;
/* rgb */ color: rgb(180, 167, 47);
/* oklch */ color: oklch(71.8% 0.135 103.0);
Tailwind
colors: {
  custom: {
    50: '#cec070',
    500: '#b4a72f',
    950: '#000000',
  },
}
SCSS
$custom: #b4a72f;
$custom-light: #cec070;
$custom-dark: #000000;
JSON
{
  "hex": "#b4a72f",
  "rgb": {
    "r": 180,
    "g": 167,
    "b": 47
  },
  "hsl": {
    "h": 54.135,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.71844,
    "c": 0.13538,
    "h": 103
  },
  "luminance": 0.37546
}

Semantic roles & 50–950 ramp

primary
#B4A72F
secondary
#7880C7
accent
#55E246
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B4A72F

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

Preview Lab → · Contrast checker → · Palette generator →

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