#B5A52C#B5A52C

#B5A52C is a light, vivid yellow. Relative luminance 0.369; OKLCH L 71.5% C 0.135 H 101.5°. Best body text is #000000 at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#B5A52C
RGBrgb(181, 165, 44)
HSLhsl(53, 61%, 44%)
HSVhsv(53, 76%, 71%)
CMYKcmyk(0%, 8.8%, 75.7%, 29%)
CIE-LABlab(67.22, -7.38, 60.51)
CIE-LCHlch(67.22, 60.96, 96.95°)
OKLaboklab(71.49% -0.0269 0.1327)
OKLCHoklch(71.49% 0.135 101.5)
XYZxyz(32.9674, 36.9174, 7.7716)
Luminance0.3692 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5A52C #2C3CB5
analogous
#B5612C #B5A52C #81B52C
triadic
#B5A52C #2CB5A5 #A52CB5
tetradic
#B5A52C #2CB561 #2C3CB5 #B52C81
square
#B5A52C #2CB561 #2C3CB5 #B52C81
split-complementary
#B5A52C #2C81B5 #612CB5
monochromatic
#534B14 #847820 #B5A52C #D3C34B #DFD47C

Accessibility & contrast

On white

2.51
#B5A52C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.38
#B5A52C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5A52C
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5A52C#FFFFFF#000000##000000
##B5A52C1.002.518.388.38
#FFFFFF2.511.0021.0021.00
#0000008.3821.001.001.00
##0000008.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A013
Deuteranopia (green-blind)
#B9A635
Tritanopia (blue-blind)
#C3998E
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #b5a52c;
/* rgb */ color: rgb(181, 165, 44);
/* oklch */ color: oklch(71.5% 0.135 101.5);
Tailwind
colors: {
  custom: {
    50: '#cfbf6f',
    500: '#b5a52c',
    950: '#000000',
  },
}
SCSS
$custom: #b5a52c;
$custom-light: #cfbf6f;
$custom-dark: #000000;
JSON
{
  "hex": "#b5a52c",
  "rgb": {
    "r": 181,
    "g": 165,
    "b": 44
  },
  "hsl": {
    "h": 52.993,
    "s": 60.889,
    "l": 44.118
  },
  "oklch": {
    "l": 0.71486,
    "c": 0.1354,
    "h": 101.5
  },
  "luminance": 0.36916
}

Semantic roles & 50–950 ramp

primary
#B5A52C
secondary
#757FC8
accent
#57E444
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B5A52C

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

Preview Lab → · Contrast checker → · Palette generator →

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