#B4B840#B4B840

#B4B840 is a light, vivid yellow. Relative luminance 0.444; OKLCH L 75.7% C 0.141 H 111.2°. Best body text is #000000 at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#B4B840
RGBrgb(180, 184, 64)
HSLhsl(62, 48%, 49%)
HSVhsv(62, 65%, 72%)
CMYKcmyk(2.2%, 0%, 65.2%, 27.8%)
CIE-LABlab(72.47, -16.60, 58.08)
CIE-LCHlch(72.47, 60.40, 105.95°)
OKLaboklab(75.69% -0.0508 0.1311)
OKLCHoklch(75.69% 0.141 111.2)
XYZxyz(36.8894, 44.3554, 11.4677)
Luminance0.4435 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4B840 #4440B8
analogous
#B88040 #B4B840 #78B840
triadic
#B4B840 #40B4B8 #B840B4
tetradic
#B4B840 #40B880 #4440B8 #B84078
square
#B4B840 #40B880 #4440B8 #B84078
split-complementary
#B4B840 #4078B8 #8040B8
monochromatic
#5B5D20 #888B30 #B4B840 #C8CB6A #D9DB97

Accessibility & contrast

On white

2.13
#B4B840 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.87
#B4B840 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4B840
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4B840#FFFFFF#000000##000000
##B4B8401.002.139.879.87
#FFFFFF2.131.0021.0021.00
#0000009.8721.001.001.00
##0000009.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6B030
Deuteranopia (green-blind)
#C7B348
Tritanopia (blue-blind)
#C0ADA0
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #b4b840;
/* rgb */ color: rgb(180, 184, 64);
/* oklch */ color: oklch(75.7% 0.141 111.2);
Tailwind
colors: {
  custom: {
    50: '#cdcd7b',
    500: '#b4b840',
    950: '#000000',
  },
}
SCSS
$custom: #b4b840;
$custom-light: #cdcd7b;
$custom-dark: #000000;
JSON
{
  "hex": "#b4b840",
  "rgb": {
    "r": 180,
    "g": 184,
    "b": 64
  },
  "hsl": {
    "h": 62,
    "s": 48.387,
    "l": 48.627
  },
  "oklch": {
    "l": 0.75692,
    "c": 0.14057,
    "h": 111.2
  },
  "luminance": 0.44354
}

Semantic roles & 50–950 ramp

primary
#B4B840
secondary
#8F8DC7
accent
#50D854
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#14130A
muted
#83827C

Preview Lab

Preview with #B4B840

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

Preview Lab → · Contrast checker → · Palette generator →

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