#B5B52A#B5B52A

#B5B52A is a light, vivid yellow. Relative luminance 0.430; OKLCH L 75.0% C 0.151 H 109.5°. Best body text is #000000 at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#B5B52A
RGBrgb(181, 181, 42)
HSLhsl(60, 62%, 44%)
HSVhsv(60, 77%, 71%)
CMYKcmyk(0%, 0%, 76.8%, 29%)
CIE-LABlab(71.58, -15.75, 65.19)
CIE-LCHlch(71.58, 67.06, 103.58°)
OKLaboklab(74.96% -0.0505 0.1423)
OKLCHoklch(74.96% 0.151 109.5)
XYZxyz(35.9992, 43.0398, 8.6012)
Luminance0.4304 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5B52A #2A2AB5
analogous
#B56F2A #B5B52A #6FB52A
triadic
#B5B52A #2AB5B5 #B52AB5
tetradic
#B5B52A #2AB56F #2A2AB5 #B52A6F
square
#B5B52A #2AB56F #2A2AB5 #B52A6F
split-complementary
#B5B52A #2A6FB5 #6F2AB5
monochromatic
#525213 #83831E #B5B52A #D4D448 #E0E079

Accessibility & contrast

On white

2.19
#B5B52A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.61
#B5B52A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5B52A
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5B52A#FFFFFF#000000##000000
##B5B52A1.002.199.619.61
#FFFFFF2.191.0021.0021.00
#0000009.6121.001.001.00
##0000009.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AD01
Deuteranopia (green-blind)
#C6B136
Tritanopia (blue-blind)
#C2A99B
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #b5b52a;
/* rgb */ color: rgb(181, 181, 42);
/* oklch */ color: oklch(75.0% 0.151 109.5);
Tailwind
colors: {
  custom: {
    50: '#cfca70',
    500: '#b5b52a',
    950: '#000000',
  },
}
SCSS
$custom: #b5b52a;
$custom-light: #cfca70;
$custom-dark: #000000;
JSON
{
  "hex": "#b5b52a",
  "rgb": {
    "r": 181,
    "g": 181,
    "b": 42
  },
  "hsl": {
    "h": 60,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.74962,
    "c": 0.15098,
    "h": 109.5
  },
  "luminance": 0.43039
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B5B52A

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

Preview Lab → · Contrast checker → · Palette generator →

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