#B4A22F#B4A22F

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

Color values

HEX#B4A22F
RGBrgb(180, 162, 47)
HSLhsl(52, 59%, 45%)
HSVhsv(52, 74%, 71%)
CMYKcmyk(0%, 10%, 73.9%, 29.4%)
CIE-LABlab(66.33, -6.10, 58.56)
CIE-LCHlch(66.33, 58.88, 95.95°)
OKLaboklab(70.77% -0.0229 0.1292)
OKLCHoklch(70.77% 0.131 100.1)
XYZxyz(32.2573, 35.7507, 7.8902)
Luminance0.3575 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4A22F #2F41B4
analogous
#B4602F #B4A22F #83B42F
triadic
#B4A22F #2FB4A2 #A22FB4
tetradic
#B4A22F #2FB460 #2F41B4 #B42F83
square
#B4A22F #2FB460 #2F41B4 #B42F83
split-complementary
#B4A22F #2F83B4 #602FB4
monochromatic
#534B16 #837622 #B4A22F #D1BF4F #DED180

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B4A22F#FFFFFF#000000##000000
##B4A22F1.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)
#B29D1B
Deuteranopia (green-blind)
#B7A437
Tritanopia (blue-blind)
#C2968C
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b4a22f;
/* rgb */ color: rgb(180, 162, 47);
/* oklch */ color: oklch(70.8% 0.131 100.1);
Tailwind
colors: {
  custom: {
    50: '#cebd70',
    500: '#b4a22f',
    950: '#000000',
  },
}
SCSS
$custom: #b4a22f;
$custom-light: #cebd70;
$custom-dark: #000000;
JSON
{
  "hex": "#b4a22f",
  "rgb": {
    "r": 180,
    "g": 162,
    "b": 47
  },
  "hsl": {
    "h": 51.88,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.70767,
    "c": 0.1312,
    "h": 100.1
  },
  "luminance": 0.35749
}

Semantic roles & 50–950 ramp

primary
#B4A22F
secondary
#7883C7
accent
#5BE246
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B4A22F

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

Preview Lab → · Contrast checker → · Palette generator →

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