#B5B02A#B5B02A

#B5B02A is a light, vivid yellow. Relative luminance 0.410; OKLCH L 73.9% C 0.146 H 107.3°. Best body text is #000000 at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#B5B02A
RGBrgb(181, 176, 42)
HSLhsl(58, 62%, 44%)
HSVhsv(58, 77%, 71%)
CMYKcmyk(0%, 2.8%, 76.8%, 29%)
CIE-LABlab(70.21, -13.19, 63.94)
CIE-LCHlch(70.21, 65.28, 101.66°)
OKLaboklab(73.86% -0.0434 0.1396)
OKLCHoklch(73.86% 0.146 107.3)
XYZxyz(35.0007, 41.0428, 8.2684)
Luminance0.4104 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5B02A #2A2FB5
analogous
#B56A2A #B5B02A #74B52A
triadic
#B5B02A #2AB5B0 #B02AB5
tetradic
#B5B02A #2AB56A #2A2FB5 #B52A74
square
#B5B02A #2AB56A #2A2FB5 #B52A74
split-complementary
#B5B02A #2A74B5 #6A2AB5
monochromatic
#524F13 #83801E #B5B02A #D4CF48 #E0DC79

Accessibility & contrast

On white

2.28
#B5B02A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.21
#B5B02A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5B02A
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5B02A#FFFFFF#000000##000000
##B5B02A1.002.289.219.21
#FFFFFF2.281.0021.0021.00
#0000009.2121.001.001.00
##0000009.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFA906
Deuteranopia (green-blind)
#C2AE35
Tritanopia (blue-blind)
#C3A497
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #b5b02a;
/* rgb */ color: rgb(181, 176, 42);
/* oklch */ color: oklch(73.9% 0.146 107.3);
Tailwind
colors: {
  custom: {
    50: '#cfc76f',
    500: '#b5b02a',
    950: '#000000',
  },
}
SCSS
$custom: #b5b02a;
$custom-light: #cfc76f;
$custom-dark: #000000;
JSON
{
  "hex": "#b5b02a",
  "rgb": {
    "r": 181,
    "g": 176,
    "b": 42
  },
  "hsl": {
    "h": 57.842,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.73863,
    "c": 0.14621,
    "h": 107.3
  },
  "luminance": 0.41042
}

Semantic roles & 50–950 ramp

primary
#B5B02A
secondary
#7376C8
accent
#48E542
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B5B02A

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

Preview Lab → · Contrast checker → · Palette generator →

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