#B4A22B#B4A22B

#B4A22B is a light, vivid yellow. Relative luminance 0.357; OKLCH L 70.7% C 0.134 H 100.3°. Best body text is #000000 at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#B4A22B
RGBrgb(180, 162, 43)
HSLhsl(52, 61%, 44%)
HSVhsv(52, 76%, 71%)
CMYKcmyk(0%, 10%, 76.1%, 29.4%)
CIE-LABlab(66.31, -6.28, 59.98)
CIE-LCHlch(66.31, 60.31, 95.97°)
OKLaboklab(70.74% -0.0238 0.1314)
OKLCHoklch(70.74% 0.134 100.3)
XYZxyz(32.1803, 35.7199, 7.4846)
Luminance0.3572 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4A22B #2B3DB4
analogous
#B45D2B #B4A22B #81B42B
triadic
#B4A22B #2BB4A2 #A22BB4
tetradic
#B4A22B #2BB45D #2B3DB4 #B42B81
square
#B4A22B #2BB45D #2B3DB4 #B42B81
split-complementary
#B4A22B #2B81B4 #5D2BB4
monochromatic
#514913 #83761F #B4A22B #D3C149 #DFD27A

Accessibility & contrast

On white

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

On black

8.14
#B4A22B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4A22B
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4A22B#FFFFFF#000000##000000
##B4A22B1.002.588.148.14
#FFFFFF2.581.0021.0021.00
#0000008.1421.001.001.00
##0000008.1421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b4a22b;
/* rgb */ color: rgb(180, 162, 43);
/* oklch */ color: oklch(70.7% 0.134 100.3);
Tailwind
colors: {
  custom: {
    50: '#cebd6e',
    500: '#b4a22b',
    950: '#000000',
  },
}
SCSS
$custom: #b4a22b;
$custom-light: #cebd6e;
$custom-dark: #000000;
JSON
{
  "hex": "#b4a22b",
  "rgb": {
    "r": 180,
    "g": 162,
    "b": 43
  },
  "hsl": {
    "h": 52.117,
    "s": 61.435,
    "l": 43.725
  },
  "oklch": {
    "l": 0.7074,
    "c": 0.13355,
    "h": 100.3
  },
  "luminance": 0.35718
}

Semantic roles & 50–950 ramp

primary
#B4A22B
secondary
#737EC7
accent
#58E543
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141208
muted
#83817B

Preview Lab

Preview with #B4A22B

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

Preview Lab → · Contrast checker → · Palette generator →

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