#B5A02B#B5A02B

#B5A02B is a light, vivid yellow. Relative luminance 0.351; OKLCH L 70.4% C 0.132 H 98.5°. Best body text is #000000 at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#B5A02B
RGBrgb(181, 160, 43)
HSLhsl(51, 62%, 44%)
HSVhsv(51, 76%, 71%)
CMYKcmyk(0%, 11.6%, 76.2%, 29%)
CIE-LABlab(65.86, -4.77, 59.59)
CIE-LCHlch(65.86, 59.78, 94.58°)
OKLaboklab(70.41% -0.0196 0.1306)
OKLCHoklch(70.41% 0.132 98.5)
XYZxyz(32.0645, 35.1414, 7.3791)
Luminance0.3514 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5A02B #2B40B5
analogous
#B55B2B #B5A02B #85B52B
triadic
#B5A02B #2BB5A0 #A02BB5
tetradic
#B5A02B #2BB55B #2B40B5 #B52B85
square
#B5A02B #2BB55B #2B40B5 #B52B85
split-complementary
#B5A02B #2B85B5 #5B2BB5
monochromatic
#524914 #84741F #B5A02B #D4BF49 #E0D07B

Accessibility & contrast

On white

2.62
#B5A02B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.03
#B5A02B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5A02B
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5A02B#FFFFFF#000000##000000
##B5A02B1.002.628.038.03
#FFFFFF2.621.0021.0021.00
#0000008.0321.001.001.00
##0000008.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09C13
Deuteranopia (green-blind)
#B6A333
Tritanopia (blue-blind)
#C3948A
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #b5a02b;
/* rgb */ color: rgb(181, 160, 43);
/* oklch */ color: oklch(70.4% 0.132 98.5);
Tailwind
colors: {
  custom: {
    50: '#cfbb6e',
    500: '#b5a02b',
    950: '#000000',
  },
}
SCSS
$custom: #b5a02b;
$custom-light: #cfbb6e;
$custom-dark: #000000;
JSON
{
  "hex": "#b5a02b",
  "rgb": {
    "r": 181,
    "g": 160,
    "b": 43
  },
  "hsl": {
    "h": 50.87,
    "s": 61.607,
    "l": 43.922
  },
  "oklch": {
    "l": 0.70408,
    "c": 0.13201,
    "h": 98.5
  },
  "luminance": 0.3514
}

Semantic roles & 50–950 ramp

primary
#B5A02B
secondary
#7481C8
accent
#5CE543
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141108
muted
#83807B

Preview Lab

Preview with #B5A02B

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

Preview Lab → · Contrast checker → · Palette generator →

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