#B5B52B#B5B52B

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

Color values

HEX#B5B52B
RGBrgb(181, 181, 43)
HSLhsl(60, 62%, 44%)
HSVhsv(60, 76%, 71%)
CMYKcmyk(0%, 0%, 76.2%, 29%)
CIE-LABlab(71.59, -15.71, 64.88)
CIE-LCHlch(71.59, 66.75, 103.61°)
OKLaboklab(74.97% -0.0503 0.1418)
OKLCHoklch(74.97% 0.15 109.5)
XYZxyz(36.0173, 43.0470, 8.6967)
Luminance0.4305 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5B52B #2B2BB5
analogous
#B5702B #B5B52B #70B52B
triadic
#B5B52B #2BB5B5 #B52BB5
tetradic
#B5B52B #2BB570 #2B2BB5 #B52B70
square
#B5B52B #2BB570 #2B2BB5 #B52B70
split-complementary
#B5B52B #2B70B5 #702BB5
monochromatic
#525214 #84841F #B5B52B #D4D449 #E0E07B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B5B52B#FFFFFF#000000##000000
##B5B52B1.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)
#C4AD05
Deuteranopia (green-blind)
#C6B137
Tritanopia (blue-blind)
#C2A99B
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #b5b52b;
/* rgb */ color: rgb(181, 181, 43);
/* oklch */ color: oklch(75.0% 0.150 109.5);
Tailwind
colors: {
  custom: {
    50: '#cfca70',
    500: '#b5b52b',
    950: '#000000',
  },
}
SCSS
$custom: #b5b52b;
$custom-light: #cfca70;
$custom-dark: #000000;
JSON
{
  "hex": "#b5b52b",
  "rgb": {
    "r": 181,
    "g": 181,
    "b": 43
  },
  "hsl": {
    "h": 60,
    "s": 61.607,
    "l": 43.922
  },
  "oklch": {
    "l": 0.74967,
    "c": 0.15048,
    "h": 109.5
  },
  "luminance": 0.43046
}

Semantic roles & 50–950 ramp

primary
#B5B52B
secondary
#7474C8
accent
#43E543
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B5B52B

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

Preview Lab → · Contrast checker → · Palette generator →

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