#B4A21F#B4A21F

#B4A21F is a light, vivid yellow. Relative luminance 0.356; OKLCH L 70.7% C 0.139 H 100.8°. Best body text is #000000 at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#B4A21F
RGBrgb(180, 162, 31)
HSLhsl(53, 71%, 41%)
HSVhsv(53, 83%, 71%)
CMYKcmyk(0%, 10%, 82.8%, 29.4%)
CIE-LABlab(66.25, -6.71, 63.68)
CIE-LCHlch(66.25, 64.03, 96.01°)
OKLaboklab(70.68% -0.0261 0.137)
OKLCHoklch(70.68% 0.139 100.8)
XYZxyz(31.9917, 35.6445, 6.4910)
Luminance0.3564 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4A21F #1F31B4
analogous
#B4581F #B4A21F #7CB41F
triadic
#B4A21F #1FB4A2 #A21FB4
tetradic
#B4A21F #1FB458 #1F31B4 #B41F7C
square
#B4A21F #1FB458 #1F31B4 #B41F7C
split-complementary
#B4A21F #1F7CB4 #581FB4
monochromatic
#4C440D #807316 #B4A21F #DCC834 #E5D668

Accessibility & contrast

On white

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

On black

8.13
#B4A21F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4A21F
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4A21F#FFFFFF#000000##000000
##B4A21F1.002.588.138.13
#FFFFFF2.581.0021.0021.00
#0000008.1321.001.001.00
##0000008.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29D00
Deuteranopia (green-blind)
#B7A42A
Tritanopia (blue-blind)
#C3958A
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b4a21f;
/* rgb */ color: rgb(180, 162, 31);
/* oklch */ color: oklch(70.7% 0.139 100.8);
Tailwind
colors: {
  custom: {
    50: '#cfbd68',
    500: '#b4a21f',
    950: '#000000',
  },
}
SCSS
$custom: #b4a21f;
$custom-light: #cfbd68;
$custom-dark: #000000;
JSON
{
  "hex": "#b4a21f",
  "rgb": {
    "r": 180,
    "g": 162,
    "b": 31
  },
  "hsl": {
    "h": 52.752,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.70676,
    "c": 0.13945,
    "h": 100.8
  },
  "luminance": 0.35643
}

Semantic roles & 50–950 ramp

primary
#B4A21F
secondary
#6471CB
accent
#50ED3A
background
#FDFBF6
surface
#FAF6EB
border
#D3D0C6
text
#141207
muted
#83817A

Preview Lab

Preview with #B4A21F

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

Preview Lab → · Contrast checker → · Palette generator →

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