#B5B940#B5B940

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

Color values

HEX#B5B940
RGBrgb(181, 185, 64)
HSLhsl(62, 49%, 49%)
HSVhsv(62, 65%, 73%)
CMYKcmyk(2.2%, 0%, 65.4%, 27.5%)
CIE-LABlab(72.82, -16.68, 58.47)
CIE-LCHlch(72.82, 60.80, 105.92°)
OKLaboklab(76% -0.051 0.1319)
OKLCHoklch(76% 0.141 111.2)
XYZxyz(37.3316, 44.8928, 11.5481)
Luminance0.4489 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5B940 #4440B9
analogous
#B98140 #B5B940 #79B940
triadic
#B5B940 #40B5B9 #B940B5
tetradic
#B5B940 #40B981 #4440B9 #B94079
square
#B5B940 #40B981 #4440B9 #B94079
split-complementary
#B5B940 #4079B9 #8140B9
monochromatic
#5C5E21 #898C30 #B5B940 #C8CC6B #D9DB98

Accessibility & contrast

On white

2.10
#B5B940 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.98
#B5B940 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5B940
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5B940#FFFFFF#000000##000000
##B5B9401.002.109.989.98
#FFFFFF2.101.0021.0021.00
#0000009.9821.001.001.00
##0000009.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B12F
Deuteranopia (green-blind)
#C8B448
Tritanopia (blue-blind)
#C1AEA0
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #b5b940;
/* rgb */ color: rgb(181, 185, 64);
/* oklch */ color: oklch(76.0% 0.141 111.2);
Tailwind
colors: {
  custom: {
    50: '#cecd7b',
    500: '#b5b940',
    950: '#000000',
  },
}
SCSS
$custom: #b5b940;
$custom-light: #cecd7b;
$custom-dark: #000000;
JSON
{
  "hex": "#b5b940",
  "rgb": {
    "r": 181,
    "g": 185,
    "b": 64
  },
  "hsl": {
    "h": 61.983,
    "s": 48.594,
    "l": 48.824
  },
  "oklch": {
    "l": 0.75996,
    "c": 0.14143,
    "h": 111.2
  },
  "luminance": 0.44892
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B5B940

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

Preview Lab → · Contrast checker → · Palette generator →

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