#B5A52E#B5A52E

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

Color values

HEX#B5A52E
RGBrgb(181, 165, 46)
HSLhsl(53, 59%, 45%)
HSVhsv(53, 75%, 71%)
CMYKcmyk(0%, 8.8%, 74.6%, 29%)
CIE-LABlab(67.23, -7.29, 59.82)
CIE-LCHlch(67.23, 60.26, 96.95°)
OKLaboklab(71.5% -0.0264 0.1316)
OKLCHoklch(71.5% 0.134 101.4)
XYZxyz(33.0059, 36.9328, 7.9744)
Luminance0.3693 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5A52E #2E3EB5
analogous
#B5622E #B5A52E #82B52E
triadic
#B5A52E #2EB5A5 #A52EB5
tetradic
#B5A52E #2EB562 #2E3EB5 #B52E82
square
#B5A52E #2EB562 #2E3EB5 #B52E82
split-complementary
#B5A52E #2E82B5 #622EB5
monochromatic
#534C15 #847922 #B5A52E #D2C24E #DED37F

Accessibility & contrast

On white

2.50
#B5A52E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.39
#B5A52E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5A52E
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5A52E#FFFFFF#000000##000000
##B5A52E1.002.508.398.39
#FFFFFF2.501.0021.0021.00
#0000008.3921.001.001.00
##0000008.3921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b5a52e;
/* rgb */ color: rgb(181, 165, 46);
/* oklch */ color: oklch(71.5% 0.134 101.4);
Tailwind
colors: {
  custom: {
    50: '#cfbf70',
    500: '#b5a52e',
    950: '#000000',
  },
}
SCSS
$custom: #b5a52e;
$custom-light: #cfbf70;
$custom-dark: #000000;
JSON
{
  "hex": "#b5a52e",
  "rgb": {
    "r": 181,
    "g": 165,
    "b": 46
  },
  "hsl": {
    "h": 52.889,
    "s": 59.471,
    "l": 44.51
  },
  "oklch": {
    "l": 0.71499,
    "c": 0.13424,
    "h": 101.4
  },
  "luminance": 0.36931
}

Semantic roles & 50–950 ramp

primary
#B5A52E
secondary
#7881C7
accent
#58E345
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B5A52E

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

Preview Lab → · Contrast checker → · Palette generator →

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