#B5B52F#B5B52F

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

Color values

HEX#B5B52F
RGBrgb(181, 181, 47)
HSLhsl(60, 59%, 45%)
HSVhsv(60, 74%, 71%)
CMYKcmyk(0%, 0%, 74%, 29%)
CIE-LABlab(71.61, -15.54, 63.60)
CIE-LCHlch(71.61, 65.47, 103.73°)
OKLaboklab(74.99% -0.0495 0.1398)
OKLCHoklch(74.99% 0.148 109.5)
XYZxyz(36.0943, 43.0778, 9.1023)
Luminance0.4308 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5B52F #2F2FB5
analogous
#B5722F #B5B52F #72B52F
triadic
#B5B52F #2FB5B5 #B52FB5
tetradic
#B5B52F #2FB572 #2F2FB5 #B52F72
square
#B5B52F #2FB572 #2F2FB5 #B52F72
split-complementary
#B5B52F #2F72B5 #722FB5
monochromatic
#545416 #848422 #B5B52F #D1D150 #DEDE80

Accessibility & contrast

On white

2.18
#B5B52F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.62
#B5B52F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5B52F
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5B52F#FFFFFF#000000##000000
##B5B52F1.002.189.629.62
#FFFFFF2.181.0021.0021.00
#0000009.6221.001.001.00
##0000009.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AD12
Deuteranopia (green-blind)
#C5B13A
Tritanopia (blue-blind)
#C2A99C
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #b5b52f;
/* rgb */ color: rgb(181, 181, 47);
/* oklch */ color: oklch(75.0% 0.148 109.5);
Tailwind
colors: {
  custom: {
    50: '#cfca72',
    500: '#b5b52f',
    950: '#000000',
  },
}
SCSS
$custom: #b5b52f;
$custom-light: #cfca72;
$custom-dark: #000000;
JSON
{
  "hex": "#b5b52f",
  "rgb": {
    "r": 181,
    "g": 181,
    "b": 47
  },
  "hsl": {
    "h": 60,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.74991,
    "c": 0.14833,
    "h": 109.5
  },
  "luminance": 0.43077
}

Semantic roles & 50–950 ramp

primary
#B5B52F
secondary
#7979C7
accent
#46E246
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B5B52F

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

Preview Lab → · Contrast checker → · Palette generator →

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