#B4A42D#B4A42D

#B4A42D is a light, vivid yellow. Relative luminance 0.364; OKLCH L 71.2% C 0.134 H 101.3°. Best body text is #000000 at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#B4A42D
RGBrgb(180, 164, 45)
HSLhsl(53, 60%, 44%)
HSVhsv(53, 75%, 71%)
CMYKcmyk(0%, 8.9%, 75%, 29.4%)
CIE-LABlab(66.86, -7.25, 59.79)
CIE-LCHlch(66.86, 60.23, 96.91°)
OKLaboklab(71.18% -0.0264 0.1314)
OKLCHoklch(71.18% 0.134 101.3)
XYZxyz(32.5730, 36.4452, 7.8010)
Luminance0.3644 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4A42D #2D3DB4
analogous
#B4612D #B4A42D #81B42D
triadic
#B4A42D #2DB4A4 #A42DB4
tetradic
#B4A42D #2DB461 #2D3DB4 #B42D81
square
#B4A42D #2DB461 #2D3DB4 #B42D81
split-complementary
#B4A42D #2D81B4 #612DB4
monochromatic
#524B15 #837721 #B4A42D #D2C24C #DED37D

Accessibility & contrast

On white

2.53
#B4A42D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.29
#B4A42D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4A42D
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4A42D#FFFFFF#000000##000000
##B4A42D1.002.538.298.29
#FFFFFF2.531.0021.0021.00
#0000008.2921.001.001.00
##0000008.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B49F16
Deuteranopia (green-blind)
#B8A535
Tritanopia (blue-blind)
#C2988D
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #b4a42d;
/* rgb */ color: rgb(180, 164, 45);
/* oklch */ color: oklch(71.2% 0.134 101.3);
Tailwind
colors: {
  custom: {
    50: '#cebe6f',
    500: '#b4a42d',
    950: '#000000',
  },
}
SCSS
$custom: #b4a42d;
$custom-light: #cebe6f;
$custom-dark: #000000;
JSON
{
  "hex": "#b4a42d",
  "rgb": {
    "r": 180,
    "g": 164,
    "b": 45
  },
  "hsl": {
    "h": 52.889,
    "s": 60,
    "l": 44.118
  },
  "oklch": {
    "l": 0.71183,
    "c": 0.13403,
    "h": 101.3
  },
  "luminance": 0.36444
}

Semantic roles & 50–950 ramp

primary
#B4A42D
secondary
#767FC7
accent
#57E345
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B4A42D

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

Preview Lab → · Contrast checker → · Palette generator →

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