#B5B42A#B5B42A

#B5B42A is a light, vivid yellow. Relative luminance 0.426; OKLCH L 74.7% C 0.150 H 109.1°. Best body text is #000000 at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#B5B42A
RGBrgb(181, 180, 42)
HSLhsl(60, 62%, 44%)
HSVhsv(60, 77%, 71%)
CMYKcmyk(0%, 0.6%, 76.8%, 29%)
CIE-LABlab(71.31, -15.24, 64.94)
CIE-LCHlch(71.31, 66.70, 103.21°)
OKLaboklab(74.74% -0.0491 0.1417)
OKLCHoklch(74.74% 0.15 109.1)
XYZxyz(35.7966, 42.6346, 8.5337)
Luminance0.4263 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5B42A #2A2BB5
analogous
#B56E2A #B5B42A #70B52A
triadic
#B5B42A #2AB5B4 #B42AB5
tetradic
#B5B42A #2AB56E #2A2BB5 #B52A70
square
#B5B42A #2AB56E #2A2BB5 #B52A70
split-complementary
#B5B42A #2A70B5 #6E2AB5
monochromatic
#525113 #83831E #B5B42A #D4D348 #E0DF79

Accessibility & contrast

On white

2.20
#B5B42A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.53
#B5B42A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5B42A
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5B42A#FFFFFF#000000##000000
##B5B42A1.002.209.539.53
#FFFFFF2.201.0021.0021.00
#0000009.5321.001.001.00
##0000009.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AC02
Deuteranopia (green-blind)
#C5B136
Tritanopia (blue-blind)
#C2A89A
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #b5b42a;
/* rgb */ color: rgb(181, 180, 42);
/* oklch */ color: oklch(74.7% 0.150 109.1);
Tailwind
colors: {
  custom: {
    50: '#cfca6f',
    500: '#b5b42a',
    950: '#000000',
  },
}
SCSS
$custom: #b5b42a;
$custom-light: #cfca6f;
$custom-dark: #000000;
JSON
{
  "hex": "#b5b42a",
  "rgb": {
    "r": 181,
    "g": 180,
    "b": 42
  },
  "hsl": {
    "h": 59.568,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.74742,
    "c": 0.15002,
    "h": 109.1
  },
  "luminance": 0.42633
}

Semantic roles & 50–950 ramp

primary
#B5B42A
secondary
#7373C8
accent
#44E542
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B5B42A

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

Preview Lab → · Contrast checker → · Palette generator →

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