#B4B52E#B4B52E

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

Color values

HEX#B4B52E
RGBrgb(180, 181, 46)
HSLhsl(60, 59%, 45%)
HSVhsv(60, 75%, 71%)
CMYKcmyk(0.6%, 0%, 74.6%, 29%)
CIE-LABlab(71.52, -16.02, 63.82)
CIE-LCHlch(71.52, 65.80, 104.09°)
OKLaboklab(74.9% -0.0509 0.1402)
OKLCHoklch(74.9% 0.149 109.9)
XYZxyz(35.8407, 42.9494, 8.9863)
Luminance0.4295 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4B52E #2F2EB5
analogous
#B5722E #B4B52E #71B52E
triadic
#B4B52E #2EB4B5 #B52EB4
tetradic
#B4B52E #2EB572 #2F2EB5 #B52E71
square
#B4B52E #2EB572 #2F2EB5 #B52E71
split-complementary
#B4B52E #2E71B5 #722EB5
monochromatic
#535315 #838422 #B4B52E #D1D24E #DEDE7F

Accessibility & contrast

On white

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

On black

9.59
#B4B52E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4B52E
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4B52E#FFFFFF#000000##000000
##B4B52E1.002.199.599.59
#FFFFFF2.191.0021.0021.00
#0000009.5921.001.001.00
##0000009.5921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b4b52e;
/* rgb */ color: rgb(180, 181, 46);
/* oklch */ color: oklch(74.9% 0.149 109.9);
Tailwind
colors: {
  custom: {
    50: '#ceca71',
    500: '#b4b52e',
    950: '#000000',
  },
}
SCSS
$custom: #b4b52e;
$custom-light: #ceca71;
$custom-dark: #000000;
JSON
{
  "hex": "#b4b52e",
  "rgb": {
    "r": 180,
    "g": 181,
    "b": 46
  },
  "hsl": {
    "h": 60.444,
    "s": 59.471,
    "l": 44.51
  },
  "oklch": {
    "l": 0.74899,
    "c": 0.1491,
    "h": 109.9
  },
  "luminance": 0.42948
}

Semantic roles & 50–950 ramp

primary
#B4B52E
secondary
#7878C7
accent
#45E346
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B4B52E

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

Preview Lab → · Contrast checker → · Palette generator →

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