#B4B52A#B4B52A

#B4B52A is a light, vivid yellow. Relative luminance 0.429; OKLCH L 74.9% C 0.151 H 110.0°. Best body text is #000000 at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#B4B52A
RGBrgb(180, 181, 42)
HSLhsl(60, 62%, 44%)
HSVhsv(60, 77%, 71%)
CMYKcmyk(0.6%, 0%, 76.8%, 29%)
CIE-LABlab(71.50, -16.18, 65.08)
CIE-LCHlch(71.50, 67.06, 103.96°)
OKLaboklab(74.88% -0.0517 0.1421)
OKLCHoklch(74.88% 0.151 110)
XYZxyz(35.7655, 42.9193, 8.5903)
Luminance0.4292 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4B52A #2B2AB5
analogous
#B5702A #B4B52A #6EB52A
triadic
#B4B52A #2AB4B5 #B52AB4
tetradic
#B4B52A #2AB570 #2B2AB5 #B52A6E
square
#B4B52A #2AB570 #2B2AB5 #B52A6E
split-complementary
#B4B52A #2A6EB5 #702AB5
monochromatic
#515213 #83831E #B4B52A #D3D448 #DFE079

Accessibility & contrast

On white

2.19
#B4B52A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.58
#B4B52A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4B52A
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4B52A#FFFFFF#000000##000000
##B4B52A1.002.199.589.58
#FFFFFF2.191.0021.0021.00
#0000009.5821.001.001.00
##0000009.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AD01
Deuteranopia (green-blind)
#C5B136
Tritanopia (blue-blind)
#C1A99B
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #b4b52a;
/* rgb */ color: rgb(180, 181, 42);
/* oklch */ color: oklch(74.9% 0.151 110.0);
Tailwind
colors: {
  custom: {
    50: '#ceca70',
    500: '#b4b52a',
    950: '#000000',
  },
}
SCSS
$custom: #b4b52a;
$custom-light: #ceca70;
$custom-dark: #000000;
JSON
{
  "hex": "#b4b52a",
  "rgb": {
    "r": 180,
    "g": 181,
    "b": 42
  },
  "hsl": {
    "h": 60.432,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.74877,
    "c": 0.1512,
    "h": 110
  },
  "luminance": 0.42918
}

Semantic roles & 50–950 ramp

primary
#B4B52A
secondary
#7373C8
accent
#42E544
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B4B52A

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

Preview Lab → · Contrast checker → · Palette generator →

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