#B4B042#B4B042

#B4B042 is a light, vivid yellow. Relative luminance 0.411; OKLCH L 74.0% C 0.131 H 107.2°. Best body text is #000000 at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#B4B042
RGBrgb(180, 176, 66)
HSLhsl(58, 46%, 48%)
HSVhsv(58, 63%, 71%)
CMYKcmyk(0%, 2.2%, 63.3%, 29.4%)
CIE-LABlab(70.28, -12.38, 54.95)
CIE-LCHlch(70.28, 56.33, 102.70°)
OKLaboklab(73.95% -0.0386 0.1248)
OKLCHoklch(73.95% 0.131 107.2)
XYZxyz(35.3323, 41.1484, 11.2345)
Luminance0.4115 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4B042 #4246B4
analogous
#B47742 #B4B042 #7FB442
triadic
#B4B042 #42B4B0 #B042B4
tetradic
#B4B042 #42B477 #4246B4 #B4427F
square
#B4B042 #42B477 #4246B4 #B4427F
split-complementary
#B4B042 #427FB4 #7742B4
monochromatic
#5A5821 #878432 #B4B042 #C9C56B #D9D797

Accessibility & contrast

On white

2.28
#B4B042 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.23
#B4B042 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4B042
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4B042#FFFFFF#000000##000000
##B4B0421.002.289.239.23
#FFFFFF2.281.0021.0021.00
#0000009.2321.001.001.00
##0000009.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA934
Deuteranopia (green-blind)
#C0AE49
Tritanopia (blue-blind)
#C0A599
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #b4b042;
/* rgb */ color: rgb(180, 176, 66);
/* oklch */ color: oklch(74.0% 0.131 107.2);
Tailwind
colors: {
  custom: {
    50: '#cdc77c',
    500: '#b4b042',
    950: '#000000',
  },
}
SCSS
$custom: #b4b042;
$custom-light: #cdc77c;
$custom-dark: #000000;
JSON
{
  "hex": "#b4b042",
  "rgb": {
    "r": 180,
    "g": 176,
    "b": 66
  },
  "hsl": {
    "h": 57.895,
    "s": 46.341,
    "l": 48.235
  },
  "oklch": {
    "l": 0.73952,
    "c": 0.13065,
    "h": 107.2
  },
  "luminance": 0.41147
}

Semantic roles & 50–950 ramp

primary
#B4B042
secondary
#8D8FC5
accent
#56D652
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#14130A
muted
#83827C

Preview Lab

Preview with #B4B042

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

Preview Lab → · Contrast checker → · Palette generator →

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