#B5A336#B5A336

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

Color values

HEX#B5A336
RGBrgb(181, 163, 54)
HSLhsl(51, 54%, 46%)
HSVhsv(51, 70%, 71%)
CMYKcmyk(0%, 9.9%, 70.2%, 29%)
CIE-LABlab(66.74, -5.85, 56.30)
CIE-LCHlch(66.74, 56.60, 95.93°)
OKLaboklab(71.13% -0.0215 0.1257)
OKLCHoklch(71.13% 0.127 99.7)
XYZxyz(32.8206, 36.2860, 8.7644)
Luminance0.3628 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5A336 #3648B5
analogous
#B56336 #B5A336 #87B536
triadic
#B5A336 #36B5A3 #A336B5
tetradic
#B5A336 #36B563 #3648B5 #B53687
square
#B5A336 #36B563 #3648B5 #B53687
split-complementary
#B5A336 #3687B5 #6336B5
monochromatic
#574E1A #867928 #B5A336 #CEBD5A #DCD089

Accessibility & contrast

On white

2.54
#B5A336 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.26
#B5A336 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5A336
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5A336#FFFFFF#000000##000000
##B5A3361.002.548.268.26
#FFFFFF2.541.0021.0021.00
#0000008.2621.001.001.00
##0000008.2621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b5a336;
/* rgb */ color: rgb(181, 163, 54);
/* oklch */ color: oklch(71.1% 0.127 99.7);
Tailwind
colors: {
  custom: {
    50: '#cfbd74',
    500: '#b5a336',
    950: '#000000',
  },
}
SCSS
$custom: #b5a336;
$custom-light: #cfbd74;
$custom-dark: #000000;
JSON
{
  "hex": "#b5a336",
  "rgb": {
    "r": 181,
    "g": 163,
    "b": 54
  },
  "hsl": {
    "h": 51.496,
    "s": 54.043,
    "l": 46.078
  },
  "oklch": {
    "l": 0.71128,
    "c": 0.12748,
    "h": 99.7
  },
  "luminance": 0.36284
}

Semantic roles & 50–950 ramp

primary
#B5A336
secondary
#818BC6
accent
#5FDD4A
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B5A336

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

Preview Lab → · Contrast checker → · Palette generator →

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