#B4B540#B4B540

#B4B540 is a light, vivid yellow. Relative luminance 0.431; OKLCH L 75.0% C 0.137 H 109.8°. Best body text is #000000 at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#B4B540
RGBrgb(180, 181, 64)
HSLhsl(61, 48%, 48%)
HSVhsv(61, 65%, 71%)
CMYKcmyk(0.6%, 0%, 64.6%, 29%)
CIE-LABlab(71.64, -15.07, 57.22)
CIE-LCHlch(71.64, 59.17, 104.76°)
OKLaboklab(75.03% -0.0465 0.1293)
OKLCHoklch(75.03% 0.137 109.8)
XYZxyz(36.2728, 43.1222, 11.2622)
Luminance0.4312 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4B540 #4140B5
analogous
#B57B40 #B4B540 #79B540
triadic
#B4B540 #40B4B5 #B540B4
tetradic
#B4B540 #40B57B #4140B5 #B54079
square
#B4B540 #40B57B #4140B5 #B54079
split-complementary
#B4B540 #4079B5 #7B40B5
monochromatic
#5A5B20 #878830 #B4B540 #C9CA68 #D9DA96

Accessibility & contrast

On white

2.18
#B4B540 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.62
#B4B540 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4B540
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4B540#FFFFFF#000000##000000
##B4B5401.002.189.629.62
#FFFFFF2.181.0021.0021.00
#0000009.6221.001.001.00
##0000009.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AE30
Deuteranopia (green-blind)
#C4B148
Tritanopia (blue-blind)
#C0AA9D
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #b4b540;
/* rgb */ color: rgb(180, 181, 64);
/* oklch */ color: oklch(75.0% 0.137 109.8);
Tailwind
colors: {
  custom: {
    50: '#cdcb7b',
    500: '#b4b540',
    950: '#000000',
  },
}
SCSS
$custom: #b4b540;
$custom-light: #cdcb7b;
$custom-dark: #000000;
JSON
{
  "hex": "#b4b540",
  "rgb": {
    "r": 180,
    "g": 181,
    "b": 64
  },
  "hsl": {
    "h": 60.513,
    "s": 47.755,
    "l": 48.039
  },
  "oklch": {
    "l": 0.7503,
    "c": 0.13738,
    "h": 109.8
  },
  "luminance": 0.43121
}

Semantic roles & 50–950 ramp

primary
#B4B540
secondary
#8C8BC5
accent
#50D752
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#14130A
muted
#83827C

Preview Lab

Preview with #B4B540

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

Preview Lab → · Contrast checker → · Palette generator →

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