#B5A02C#B5A02C

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

Color values

HEX#B5A02C
RGBrgb(181, 160, 44)
HSLhsl(51, 61%, 44%)
HSVhsv(51, 76%, 71%)
CMYKcmyk(0%, 11.6%, 75.7%, 29%)
CIE-LABlab(65.86, -4.73, 59.25)
CIE-LCHlch(65.86, 59.43, 94.56°)
OKLaboklab(70.41% -0.0194 0.13)
OKLCHoklch(70.41% 0.131 98.5)
XYZxyz(32.0831, 35.1488, 7.4769)
Luminance0.3515 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5A02C #2C41B5
analogous
#B55C2C #B5A02C #86B52C
triadic
#B5A02C #2CB5A0 #A02CB5
tetradic
#B5A02C #2CB55C #2C41B5 #B52C86
square
#B5A02C #2CB55C #2C41B5 #B52C86
split-complementary
#B5A02C #2C86B5 #5C2CB5
monochromatic
#534914 #847420 #B5A02C #D3BE4B #DFD07C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B5A02C#FFFFFF#000000##000000
##B5A02C1.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)
#B09C16
Deuteranopia (green-blind)
#B6A334
Tritanopia (blue-blind)
#C3948A
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #b5a02c;
/* rgb */ color: rgb(181, 160, 44);
/* oklch */ color: oklch(70.4% 0.131 98.5);
Tailwind
colors: {
  custom: {
    50: '#cfbb6e',
    500: '#b5a02c',
    950: '#000000',
  },
}
SCSS
$custom: #b5a02c;
$custom-light: #cfbb6e;
$custom-dark: #000000;
JSON
{
  "hex": "#b5a02c",
  "rgb": {
    "r": 181,
    "g": 160,
    "b": 44
  },
  "hsl": {
    "h": 50.803,
    "s": 60.889,
    "l": 44.118
  },
  "oklch": {
    "l": 0.70414,
    "c": 0.13145,
    "h": 98.5
  },
  "luminance": 0.35147
}

Semantic roles & 50–950 ramp

primary
#B5A02C
secondary
#7582C8
accent
#5CE444
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141108
muted
#83807B

Preview Lab

Preview with #B5A02C

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

Preview Lab → · Contrast checker → · Palette generator →

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