#B5A72F#B5A72F

#B5A72F is a light, vivid yellow. Relative luminance 0.377; OKLCH L 71.9% C 0.135 H 102.5°. Best body text is #000000 at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#B5A72F
RGBrgb(181, 167, 47)
HSLhsl(54, 59%, 45%)
HSVhsv(54, 74%, 71%)
CMYKcmyk(0%, 7.7%, 74%, 29%)
CIE-LABlab(67.78, -8.30, 59.98)
CIE-LCHlch(67.78, 60.55, 97.88°)
OKLaboklab(71.94% -0.0292 0.1321)
OKLCHoklch(71.94% 0.135 102.5)
XYZxyz(33.3894, 37.6679, 8.2006)
Luminance0.3767 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5A72F #2F3DB5
analogous
#B5642F #B5A72F #80B52F
triadic
#B5A72F #2FB5A7 #A72FB5
tetradic
#B5A72F #2FB564 #2F3DB5 #B52F80
square
#B5A72F #2FB564 #2F3DB5 #B52F80
split-complementary
#B5A72F #2F80B5 #642FB5
monochromatic
#544D16 #847A22 #B5A72F #D1C450 #DED480

Accessibility & contrast

On white

2.46
#B5A72F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.53
#B5A72F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5A72F
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5A72F#FFFFFF#000000##000000
##B5A72F1.002.468.538.53
#FFFFFF2.461.0021.0021.00
#0000008.5321.001.001.00
##0000008.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A219
Deuteranopia (green-blind)
#BBA837
Tritanopia (blue-blind)
#C39B90
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #b5a72f;
/* rgb */ color: rgb(181, 167, 47);
/* oklch */ color: oklch(71.9% 0.135 102.5);
Tailwind
colors: {
  custom: {
    50: '#cfc070',
    500: '#b5a72f',
    950: '#000000',
  },
}
SCSS
$custom: #b5a72f;
$custom-light: #cfc070;
$custom-dark: #000000;
JSON
{
  "hex": "#b5a72f",
  "rgb": {
    "r": 181,
    "g": 167,
    "b": 47
  },
  "hsl": {
    "h": 53.731,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.71937,
    "c": 0.13533,
    "h": 102.5
  },
  "luminance": 0.37666
}

Semantic roles & 50–950 ramp

primary
#B5A72F
secondary
#7981C7
accent
#56E246
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B5A72F

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

Preview Lab → · Contrast checker → · Palette generator →

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