#B5A333#B5A333

#B5A333 is a light, vivid yellow. Relative luminance 0.363; OKLCH L 71.1% C 0.129 H 99.9°. Best body text is #000000 at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#B5A333
RGBrgb(181, 163, 51)
HSLhsl(52, 56%, 45%)
HSVhsv(52, 72%, 71%)
CMYKcmyk(0%, 9.9%, 71.8%, 29%)
CIE-LABlab(66.72, -6.00, 57.46)
CIE-LCHlch(66.72, 57.77, 95.96°)
OKLaboklab(71.1% -0.0223 0.1276)
OKLCHoklch(71.1% 0.129 99.9)
XYZxyz(32.7523, 36.2587, 8.4048)
Luminance0.3626 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5A333 #3345B5
analogous
#B56233 #B5A333 #86B533
triadic
#B5A333 #33B5A3 #A333B5
tetradic
#B5A333 #33B562 #3345B5 #B53386
square
#B5A333 #33B562 #3345B5 #B53386
split-complementary
#B5A333 #3386B5 #6233B5
monochromatic
#564D18 #857826 #B5A333 #CFBF56 #DDD186

Accessibility & contrast

On white

2.55
#B5A333 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.25
#B5A333 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5A333
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5A333#FFFFFF#000000##000000
##B5A3331.002.558.258.25
#FFFFFF2.551.0021.0021.00
#0000008.2521.001.001.00
##0000008.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B39E21
Deuteranopia (green-blind)
#B8A53A
Tritanopia (blue-blind)
#C3978D
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #b5a333;
/* rgb */ color: rgb(181, 163, 51);
/* oklch */ color: oklch(71.1% 0.129 99.9);
Tailwind
colors: {
  custom: {
    50: '#cfbd72',
    500: '#b5a333',
    950: '#000000',
  },
}
SCSS
$custom: #b5a333;
$custom-light: #cfbd72;
$custom-dark: #000000;
JSON
{
  "hex": "#b5a333",
  "rgb": {
    "r": 181,
    "g": 163,
    "b": 51
  },
  "hsl": {
    "h": 51.692,
    "s": 56.034,
    "l": 45.49
  },
  "oklch": {
    "l": 0.71105,
    "c": 0.12949,
    "h": 99.9
  },
  "luminance": 0.36257
}

Semantic roles & 50–950 ramp

primary
#B5A333
secondary
#7D87C6
accent
#5DDF48
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B5A333

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

Preview Lab → · Contrast checker → · Palette generator →

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