#B4B52B#B4B52B

#B4B52B 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#B4B52B
RGBrgb(180, 181, 43)
HSLhsl(60, 62%, 44%)
HSVhsv(60, 76%, 71%)
CMYKcmyk(0.6%, 0%, 76.2%, 29%)
CIE-LABlab(71.51, -16.14, 64.78)
CIE-LCHlch(71.51, 66.76, 103.99°)
OKLaboklab(74.88% -0.0515 0.1416)
OKLCHoklch(74.88% 0.151 110)
XYZxyz(35.7836, 42.9265, 8.6857)
Luminance0.4293 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4B52B #2C2BB5
analogous
#B5712B #B4B52B #6FB52B
triadic
#B4B52B #2BB4B5 #B52BB4
tetradic
#B4B52B #2BB571 #2C2BB5 #B52B6F
square
#B4B52B #2BB571 #2C2BB5 #B52B6F
split-complementary
#B4B52B #2B6FB5 #712BB5
monochromatic
#525214 #83841F #B4B52B #D3D449 #DFE07B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B4B52B#FFFFFF#000000##000000
##B4B52B1.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)
#C4AD05
Deuteranopia (green-blind)
#C5B137
Tritanopia (blue-blind)
#C1A99B
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #b4b52b;
/* rgb */ color: rgb(180, 181, 43);
/* oklch */ color: oklch(74.9% 0.151 110.0);
Tailwind
colors: {
  custom: {
    50: '#ceca70',
    500: '#b4b52b',
    950: '#000000',
  },
}
SCSS
$custom: #b4b52b;
$custom-light: #ceca70;
$custom-dark: #000000;
JSON
{
  "hex": "#b4b52b",
  "rgb": {
    "r": 180,
    "g": 181,
    "b": 43
  },
  "hsl": {
    "h": 60.435,
    "s": 61.607,
    "l": 43.922
  },
  "oklch": {
    "l": 0.74882,
    "c": 0.1507,
    "h": 110
  },
  "luminance": 0.42925
}

Semantic roles & 50–950 ramp

primary
#B4B52B
secondary
#7574C8
accent
#43E544
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B4B52B

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

Preview Lab → · Contrast checker → · Palette generator →

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