#B4A22D#B4A22D

#B4A22D is a light, vivid yellow. Relative luminance 0.357; OKLCH L 70.8% C 0.132 H 100.2°. Best body text is #000000 at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#B4A22D
RGBrgb(180, 162, 45)
HSLhsl(52, 60%, 44%)
HSVhsv(52, 75%, 71%)
CMYKcmyk(0%, 10%, 75%, 29.4%)
CIE-LABlab(66.32, -6.19, 59.28)
CIE-LCHlch(66.32, 59.60, 95.96°)
OKLaboklab(70.75% -0.0234 0.1303)
OKLCHoklch(70.75% 0.132 100.2)
XYZxyz(32.2179, 35.7350, 7.6826)
Luminance0.3573 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4A22D #2D3FB4
analogous
#B45F2D #B4A22D #83B42D
triadic
#B4A22D #2DB4A2 #A22DB4
tetradic
#B4A22D #2DB45F #2D3FB4 #B42D83
square
#B4A22D #2DB45F #2D3FB4 #B42D83
split-complementary
#B4A22D #2D83B4 #5F2DB4
monochromatic
#524A15 #837621 #B4A22D #D2C04C #DED17D

Accessibility & contrast

On white

2.58
#B4A22D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.15
#B4A22D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4A22D
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4A22D#FFFFFF#000000##000000
##B4A22D1.002.588.158.15
#FFFFFF2.581.0021.0021.00
#0000008.1521.001.001.00
##0000008.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29D17
Deuteranopia (green-blind)
#B7A435
Tritanopia (blue-blind)
#C2968B
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b4a22d;
/* rgb */ color: rgb(180, 162, 45);
/* oklch */ color: oklch(70.8% 0.132 100.2);
Tailwind
colors: {
  custom: {
    50: '#cebd6f',
    500: '#b4a22d',
    950: '#000000',
  },
}
SCSS
$custom: #b4a22d;
$custom-light: #cebd6f;
$custom-dark: #000000;
JSON
{
  "hex": "#b4a22d",
  "rgb": {
    "r": 180,
    "g": 162,
    "b": 45
  },
  "hsl": {
    "h": 52,
    "s": 60,
    "l": 44.118
  },
  "oklch": {
    "l": 0.70753,
    "c": 0.1324,
    "h": 100.2
  },
  "luminance": 0.35733
}

Semantic roles & 50–950 ramp

primary
#B4A22D
secondary
#7681C7
accent
#5AE345
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B4A22D

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

Preview Lab → · Contrast checker → · Palette generator →

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