#B4B040#B4B040

#B4B040 is a light, vivid yellow. Relative luminance 0.411; OKLCH L 73.9% C 0.132 H 107.3°. Best body text is #000000 at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#B4B040
RGBrgb(180, 176, 64)
HSLhsl(58, 48%, 48%)
HSVhsv(58, 64%, 71%)
CMYKcmyk(0%, 2.2%, 64.4%, 29.4%)
CIE-LABlab(70.26, -12.51, 55.78)
CIE-LCHlch(70.26, 57.17, 102.64°)
OKLaboklab(73.93% -0.0392 0.1263)
OKLCHoklch(73.93% 0.132 107.3)
XYZxyz(35.2744, 41.1253, 10.9293)
Luminance0.4112 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4B040 #4044B4
analogous
#B47640 #B4B040 #7EB440
triadic
#B4B040 #40B4B0 #B040B4
tetradic
#B4B040 #40B476 #4044B4 #B4407E
square
#B4B040 #40B476 #4044B4 #B4407E
split-complementary
#B4B040 #407EB4 #7640B4
monochromatic
#5A5820 #878430 #B4B040 #C9C668 #D9D795

Accessibility & contrast

On white

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

On black

9.22
#B4B040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4B040
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4B040#FFFFFF#000000##000000
##B4B0401.002.289.229.22
#FFFFFF2.281.0021.0021.00
#0000009.2221.001.001.00
##0000009.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA931
Deuteranopia (green-blind)
#C0AE47
Tritanopia (blue-blind)
#C1A599
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #b4b040;
/* rgb */ color: rgb(180, 176, 64);
/* oklch */ color: oklch(73.9% 0.132 107.3);
Tailwind
colors: {
  custom: {
    50: '#cdc77a',
    500: '#b4b040',
    950: '#000000',
  },
}
SCSS
$custom: #b4b040;
$custom-light: #cdc77a;
$custom-dark: #000000;
JSON
{
  "hex": "#b4b040",
  "rgb": {
    "r": 180,
    "g": 176,
    "b": 64
  },
  "hsl": {
    "h": 57.931,
    "s": 47.541,
    "l": 47.843
  },
  "oklch": {
    "l": 0.73934,
    "c": 0.1322,
    "h": 107.3
  },
  "luminance": 0.41124
}

Semantic roles & 50–950 ramp

primary
#B4B040
secondary
#8B8DC5
accent
#55D751
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#14130A
muted
#83827C

Preview Lab

Preview with #B4B040

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

Preview Lab → · Contrast checker → · Palette generator →

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