#B4B02A#B4B02A

#B4B02A is a light, vivid yellow. Relative luminance 0.409; OKLCH L 73.8% C 0.146 H 107.7°. Best body text is #000000 at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#B4B02A
RGBrgb(180, 176, 42)
HSLhsl(58, 62%, 44%)
HSVhsv(58, 77%, 71%)
CMYKcmyk(0%, 2.2%, 76.7%, 29.4%)
CIE-LABlab(70.12, -13.63, 63.83)
CIE-LCHlch(70.12, 65.27, 102.05°)
OKLaboklab(73.78% -0.0446 0.1394)
OKLCHoklch(73.78% 0.146 107.7)
XYZxyz(34.7670, 40.9223, 8.2575)
Luminance0.4092 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4B02A #2A2EB4
analogous
#B46B2A #B4B02A #73B42A
triadic
#B4B02A #2AB4B0 #B02AB4
tetradic
#B4B02A #2AB46B #2A2EB4 #B42A73
square
#B4B02A #2AB46B #2A2EB4 #B42A73
split-complementary
#B4B02A #2A73B4 #6B2AB4
monochromatic
#514F13 #827F1E #B4B02A #D4D047 #E0DD79

Accessibility & contrast

On white

2.29
#B4B02A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.18
#B4B02A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4B02A
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4B02A#FFFFFF#000000##000000
##B4B02A1.002.299.189.18
#FFFFFF2.291.0021.0021.00
#0000009.1821.001.001.00
##0000009.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFA906
Deuteranopia (green-blind)
#C1AE35
Tritanopia (blue-blind)
#C1A497
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #b4b02a;
/* rgb */ color: rgb(180, 176, 42);
/* oklch */ color: oklch(73.8% 0.146 107.7);
Tailwind
colors: {
  custom: {
    50: '#cec76f',
    500: '#b4b02a',
    950: '#000000',
  },
}
SCSS
$custom: #b4b02a;
$custom-light: #cec76f;
$custom-dark: #000000;
JSON
{
  "hex": "#b4b02a",
  "rgb": {
    "r": 180,
    "g": 176,
    "b": 42
  },
  "hsl": {
    "h": 58.261,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.73776,
    "c": 0.14638,
    "h": 107.7
  },
  "luminance": 0.40921
}

Semantic roles & 50–950 ramp

primary
#B4B02A
secondary
#7275C8
accent
#47E543
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B4B02A

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

Preview Lab → · Contrast checker → · Palette generator →

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