#B5A52F#B5A52F

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

Color values

HEX#B5A52F
RGBrgb(181, 165, 47)
HSLhsl(53, 59%, 45%)
HSVhsv(53, 74%, 71%)
CMYKcmyk(0%, 8.8%, 74%, 29%)
CIE-LABlab(67.23, -7.25, 59.46)
CIE-LCHlch(67.23, 59.90, 96.95°)
OKLaboklab(71.51% -0.0262 0.1311)
OKLCHoklch(71.51% 0.134 101.3)
XYZxyz(33.0258, 36.9408, 8.0795)
Luminance0.3694 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5A52F #2F3FB5
analogous
#B5622F #B5A52F #82B52F
triadic
#B5A52F #2FB5A5 #A52FB5
tetradic
#B5A52F #2FB562 #2F3FB5 #B52F82
square
#B5A52F #2FB562 #2F3FB5 #B52F82
split-complementary
#B5A52F #2F82B5 #622FB5
monochromatic
#544C16 #847922 #B5A52F #D1C250 #DED380

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B5A52F#FFFFFF#000000##000000
##B5A52F1.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)
#B5A019
Deuteranopia (green-blind)
#B9A637
Tritanopia (blue-blind)
#C3998E
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #b5a52f;
/* rgb */ color: rgb(181, 165, 47);
/* oklch */ color: oklch(71.5% 0.134 101.3);
Tailwind
colors: {
  custom: {
    50: '#cfbf70',
    500: '#b5a52f',
    950: '#000000',
  },
}
SCSS
$custom: #b5a52f;
$custom-light: #cfbf70;
$custom-dark: #000000;
JSON
{
  "hex": "#b5a52f",
  "rgb": {
    "r": 181,
    "g": 165,
    "b": 47
  },
  "hsl": {
    "h": 52.836,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.71506,
    "c": 0.13365,
    "h": 101.3
  },
  "luminance": 0.36939
}

Semantic roles & 50–950 ramp

primary
#B5A52F
secondary
#7982C7
accent
#58E246
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B5A52F

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

Preview Lab → · Contrast checker → · Palette generator →

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