#B4A52F#B4A52F

#B4A52F is a light, vivid yellow. Relative luminance 0.368; OKLCH L 71.4% C 0.134 H 101.8°. Best body text is #000000 at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#B4A52F
RGBrgb(180, 165, 47)
HSLhsl(53, 59%, 45%)
HSVhsv(53, 74%, 71%)
CMYKcmyk(0%, 8.3%, 73.9%, 29.4%)
CIE-LABlab(67.14, -7.69, 59.34)
CIE-LCHlch(67.14, 59.84, 97.38°)
OKLaboklab(71.41% -0.0274 0.1308)
OKLCHoklch(71.41% 0.134 101.8)
XYZxyz(32.7921, 36.8203, 8.0685)
Luminance0.3682 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4A52F #2F3EB4
analogous
#B4632F #B4A52F #81B42F
triadic
#B4A52F #2FB4A5 #A52FB4
tetradic
#B4A52F #2FB463 #2F3EB4 #B42F81
square
#B4A52F #2FB463 #2F3EB4 #B42F81
split-complementary
#B4A52F #2F81B4 #632FB4
monochromatic
#534C16 #837922 #B4A52F #D1C24F #DED380

Accessibility & contrast

On white

2.51
#B4A52F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.36
#B4A52F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4A52F
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4A52F#FFFFFF#000000##000000
##B4A52F1.002.518.368.36
#FFFFFF2.511.0021.0021.00
#0000008.3621.001.001.00
##0000008.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A01A
Deuteranopia (green-blind)
#B9A637
Tritanopia (blue-blind)
#C2998E
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #b4a52f;
/* rgb */ color: rgb(180, 165, 47);
/* oklch */ color: oklch(71.4% 0.134 101.8);
Tailwind
colors: {
  custom: {
    50: '#cebf70',
    500: '#b4a52f',
    950: '#000000',
  },
}
SCSS
$custom: #b4a52f;
$custom-light: #cebf70;
$custom-dark: #000000;
JSON
{
  "hex": "#b4a52f",
  "rgb": {
    "r": 180,
    "g": 165,
    "b": 47
  },
  "hsl": {
    "h": 53.233,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.71412,
    "c": 0.13367,
    "h": 101.8
  },
  "luminance": 0.36819
}

Semantic roles & 50–950 ramp

primary
#B4A52F
secondary
#7881C7
accent
#58E246
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B4A52F

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

Preview Lab → · Contrast checker → · Palette generator →

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