#B5B42B#B5B42B

#B5B42B 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#B5B42B
RGBrgb(181, 180, 43)
HSLhsl(60, 62%, 44%)
HSVhsv(60, 76%, 71%)
CMYKcmyk(0%, 0.6%, 76.2%, 29%)
CIE-LABlab(71.31, -15.20, 64.63)
CIE-LCHlch(71.31, 66.39, 103.23°)
OKLaboklab(74.75% -0.0489 0.1413)
OKLCHoklch(74.75% 0.15 109.1)
XYZxyz(35.8147, 42.6418, 8.6291)
Luminance0.4264 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5B42B #2B2CB5
analogous
#B56F2B #B5B42B #71B52B
triadic
#B5B42B #2BB5B4 #B42BB5
tetradic
#B5B42B #2BB56F #2B2CB5 #B52B71
square
#B5B42B #2BB56F #2B2CB5 #B52B71
split-complementary
#B5B42B #2B71B5 #6F2BB5
monochromatic
#525214 #84831F #B5B42B #D4D349 #E0DF7B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B5B42B#FFFFFF#000000##000000
##B5B42B1.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)
#C3AC05
Deuteranopia (green-blind)
#C5B136
Tritanopia (blue-blind)
#C2A89A
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #b5b42b;
/* rgb */ color: rgb(181, 180, 43);
/* oklch */ color: oklch(74.7% 0.150 109.1);
Tailwind
colors: {
  custom: {
    50: '#cfca70',
    500: '#b5b42b',
    950: '#000000',
  },
}
SCSS
$custom: #b5b42b;
$custom-light: #cfca70;
$custom-dark: #000000;
JSON
{
  "hex": "#b5b42b",
  "rgb": {
    "r": 181,
    "g": 180,
    "b": 43
  },
  "hsl": {
    "h": 59.565,
    "s": 61.607,
    "l": 43.922
  },
  "oklch": {
    "l": 0.74747,
    "c": 0.14951,
    "h": 109.1
  },
  "luminance": 0.42641
}

Semantic roles & 50–950 ramp

primary
#B5B42B
secondary
#7475C8
accent
#44E543
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B5B42B

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

Preview Lab → · Contrast checker → · Palette generator →

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