#B4A21C#B4A21C

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

Color values

HEX#B4A21C
RGBrgb(180, 162, 28)
HSLhsl(53, 73%, 41%)
HSVhsv(53, 84%, 71%)
CMYKcmyk(0%, 10%, 84.4%, 29.4%)
CIE-LABlab(66.24, -6.80, 64.46)
CIE-LCHlch(66.24, 64.82, 96.02°)
OKLaboklab(70.66% -0.0265 0.1381)
OKLCHoklch(70.66% 0.141 100.9)
XYZxyz(31.9540, 35.6294, 6.2924)
Luminance0.3563 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4A21C #1C2EB4
analogous
#B4561C #B4A21C #7AB41C
triadic
#B4A21C #1CB4A2 #A21CB4
tetradic
#B4A21C #1CB456 #1C2EB4 #B41C7A
square
#B4A21C #1CB456 #1C2EB4 #B41C7A
split-complementary
#B4A21C #1C7AB4 #561CB4
monochromatic
#4A430C #7F7214 #B4A21C #DFCA2F #E7D764

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B4A21C#FFFFFF#000000##000000
##B4A21C1.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)
#B7A428
Tritanopia (blue-blind)
#C3958A
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b4a21c;
/* rgb */ color: rgb(180, 162, 28);
/* oklch */ color: oklch(70.7% 0.141 100.9);
Tailwind
colors: {
  custom: {
    50: '#cfbd67',
    500: '#b4a21c',
    950: '#000000',
  },
}
SCSS
$custom: #b4a21c;
$custom-light: #cfbd67;
$custom-dark: #000000;
JSON
{
  "hex": "#b4a21c",
  "rgb": {
    "r": 180,
    "g": 162,
    "b": 28
  },
  "hsl": {
    "h": 52.895,
    "s": 73.077,
    "l": 40.784
  },
  "oklch": {
    "l": 0.70663,
    "c": 0.14065,
    "h": 100.9
  },
  "luminance": 0.35628
}

Semantic roles & 50–950 ramp

primary
#B4A21C
secondary
#606DCC
accent
#4EF038
background
#FDFBF6
surface
#FAF6EB
border
#D3D0C6
text
#141207
muted
#83817A

Preview Lab

Preview with #B4A21C

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

Preview Lab → · Contrast checker → · Palette generator →

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