#B4B940#B4B940

#B4B940 is a light, vivid yellow. Relative luminance 0.448; OKLCH L 75.9% C 0.142 H 111.6°. Best body text is #000000 at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#B4B940
RGBrgb(180, 185, 64)
HSLhsl(62, 49%, 49%)
HSVhsv(62, 65%, 73%)
CMYKcmyk(2.7%, 0%, 65.4%, 27.5%)
CIE-LABlab(72.74, -17.10, 58.36)
CIE-LCHlch(72.74, 60.82, 106.33°)
OKLaboklab(75.91% -0.0522 0.1317)
OKLCHoklch(75.91% 0.142 111.6)
XYZxyz(37.0979, 44.7723, 11.5372)
Luminance0.4477 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4B940 #4540B9
analogous
#B98240 #B4B940 #78B940
triadic
#B4B940 #40B4B9 #B940B4
tetradic
#B4B940 #40B982 #4540B9 #B94078
square
#B4B940 #40B982 #4540B9 #B94078
split-complementary
#B4B940 #4078B9 #8240B9
monochromatic
#5C5E21 #888C30 #B4B940 #C8CC6B #D9DB98

Accessibility & contrast

On white

2.11
#B4B940 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.95
#B4B940 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4B940
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4B940#FFFFFF#000000##000000
##B4B9401.002.119.959.95
#FFFFFF2.111.0021.0021.00
#0000009.9521.001.001.00
##0000009.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B12F
Deuteranopia (green-blind)
#C7B448
Tritanopia (blue-blind)
#C0AEA0
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #b4b940;
/* rgb */ color: rgb(180, 185, 64);
/* oklch */ color: oklch(75.9% 0.142 111.6);
Tailwind
colors: {
  custom: {
    50: '#cdcd7b',
    500: '#b4b940',
    950: '#000000',
  },
}
SCSS
$custom: #b4b940;
$custom-light: #cdcd7b;
$custom-dark: #000000;
JSON
{
  "hex": "#b4b940",
  "rgb": {
    "r": 180,
    "g": 185,
    "b": 64
  },
  "hsl": {
    "h": 62.479,
    "s": 48.594,
    "l": 48.824
  },
  "oklch": {
    "l": 0.75912,
    "c": 0.14166,
    "h": 111.6
  },
  "luminance": 0.44771
}

Semantic roles & 50–950 ramp

primary
#B4B940
secondary
#908EC7
accent
#50D855
background
#FDFCF7
surface
#FAF9EE
border
#D3D2C9
text
#14130A
muted
#83827C

Preview Lab

Preview with #B4B940

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

Preview Lab → · Contrast checker → · Palette generator →

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