#B4A52E#B4A52E

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

Color values

HEX#B4A52E
RGBrgb(180, 165, 46)
HSLhsl(53, 59%, 44%)
HSVhsv(53, 74%, 71%)
CMYKcmyk(0%, 8.3%, 74.4%, 29.4%)
CIE-LABlab(67.14, -7.73, 59.70)
CIE-LCHlch(67.14, 60.20, 97.38°)
OKLaboklab(71.41% -0.0276 0.1314)
OKLCHoklch(71.41% 0.134 101.9)
XYZxyz(32.7722, 36.8123, 7.9635)
Luminance0.3681 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4A52E #2E3DB4
analogous
#B4622E #B4A52E #80B42E
triadic
#B4A52E #2EB4A5 #A52EB4
tetradic
#B4A52E #2EB462 #2E3DB4 #B42E80
square
#B4A52E #2EB462 #2E3DB4 #B42E80
split-complementary
#B4A52E #2E80B4 #622EB4
monochromatic
#534C15 #837822 #B4A52E #D2C34E #DED37E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B4A52E#FFFFFF#000000##000000
##B4A52E1.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)
#B5A018
Deuteranopia (green-blind)
#B9A636
Tritanopia (blue-blind)
#C2998E
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #b4a52e;
/* rgb */ color: rgb(180, 165, 46);
/* oklch */ color: oklch(71.4% 0.134 101.9);
Tailwind
colors: {
  custom: {
    50: '#cebf70',
    500: '#b4a52e',
    950: '#000000',
  },
}
SCSS
$custom: #b4a52e;
$custom-light: #cebf70;
$custom-dark: #000000;
JSON
{
  "hex": "#b4a52e",
  "rgb": {
    "r": 180,
    "g": 165,
    "b": 46
  },
  "hsl": {
    "h": 53.284,
    "s": 59.292,
    "l": 44.314
  },
  "oklch": {
    "l": 0.71405,
    "c": 0.13428,
    "h": 101.9
  },
  "luminance": 0.36811
}

Semantic roles & 50–950 ramp

primary
#B4A52E
secondary
#7780C7
accent
#57E245
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B4A52E

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

Preview Lab → · Contrast checker → · Palette generator →

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