#B4B828#B4B828

#B4B828 is a light, vivid yellow. Relative luminance 0.441; OKLCH L 75.5% C 0.155 H 111.3°. Best body text is #000000 at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#B4B828
RGBrgb(180, 184, 40)
HSLhsl(62, 64%, 44%)
HSVhsv(62, 78%, 72%)
CMYKcmyk(2.2%, 0%, 78.3%, 27.8%)
CIE-LABlab(72.32, -17.77, 66.43)
CIE-LCHlch(72.32, 68.76, 104.98°)
OKLaboklab(75.53% -0.0563 0.1446)
OKLCHoklch(75.53% 0.155 111.3)
XYZxyz(36.3472, 44.1385, 8.6120)
Luminance0.4414 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4B828 #2C28B8
analogous
#B87428 #B4B828 #6CB828
triadic
#B4B828 #28B4B8 #B828B4
tetradic
#B4B828 #28B874 #2C28B8 #B8286C
square
#B4B828 #28B874 #2C28B8 #B8286C
split-complementary
#B4B828 #286CB8 #7428B8
monochromatic
#525312 #83861D #B4B828 #D3D746 #DFE279

Accessibility & contrast

On white

2.14
#B4B828 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.83
#B4B828 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4B828
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4B828#FFFFFF#000000##000000
##B4B8281.002.149.839.83
#FFFFFF2.141.0021.0021.00
#0000009.8321.001.001.00
##0000009.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7AF00
Deuteranopia (green-blind)
#C8B335
Tritanopia (blue-blind)
#C1AC9E
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #b4b828;
/* rgb */ color: rgb(180, 184, 40);
/* oklch */ color: oklch(75.5% 0.155 111.3);
Tailwind
colors: {
  custom: {
    50: '#cecd6f',
    500: '#b4b828',
    950: '#000000',
  },
}
SCSS
$custom: #b4b828;
$custom-light: #cecd6f;
$custom-dark: #000000;
JSON
{
  "hex": "#b4b828",
  "rgb": {
    "r": 180,
    "g": 184,
    "b": 40
  },
  "hsl": {
    "h": 61.667,
    "s": 64.286,
    "l": 43.922
  },
  "oklch": {
    "l": 0.7553,
    "c": 0.15516,
    "h": 111.3
  },
  "luminance": 0.44137
}

Semantic roles & 50–950 ramp

primary
#B4B828
secondary
#7572CA
accent
#41E745
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B4B828

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

Preview Lab → · Contrast checker → · Palette generator →

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