#B5A72D#B5A72D

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

Color values

HEX#B5A72D
RGBrgb(181, 167, 45)
HSLhsl(54, 60%, 44%)
HSVhsv(54, 75%, 71%)
CMYKcmyk(0%, 7.7%, 75.1%, 29%)
CIE-LABlab(67.76, -8.39, 60.68)
CIE-LCHlch(67.76, 61.25, 97.87°)
OKLaboklab(71.92% -0.0296 0.1332)
OKLCHoklch(71.92% 0.137 102.5)
XYZxyz(33.3499, 37.6521, 7.9930)
Luminance0.3765 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5A72D #2D3BB5
analogous
#B5632D #B5A72D #7FB52D
triadic
#B5A72D #2DB5A7 #A72DB5
tetradic
#B5A72D #2DB563 #2D3BB5 #B52D7F
square
#B5A72D #2DB563 #2D3BB5 #B52D7F
split-complementary
#B5A72D #2D7FB5 #632DB5
monochromatic
#534D15 #847A21 #B5A72D #D3C54D #DFD57E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B5A72D#FFFFFF#000000##000000
##B5A72D1.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)
#B7A214
Deuteranopia (green-blind)
#BBA836
Tritanopia (blue-blind)
#C39B90
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #b5a72d;
/* rgb */ color: rgb(181, 167, 45);
/* oklch */ color: oklch(71.9% 0.137 102.5);
Tailwind
colors: {
  custom: {
    50: '#cfc06f',
    500: '#b5a72d',
    950: '#000000',
  },
}
SCSS
$custom: #b5a72d;
$custom-light: #cfc06f;
$custom-dark: #000000;
JSON
{
  "hex": "#b5a72d",
  "rgb": {
    "r": 181,
    "g": 167,
    "b": 45
  },
  "hsl": {
    "h": 53.824,
    "s": 60.177,
    "l": 44.314
  },
  "oklch": {
    "l": 0.71924,
    "c": 0.1365,
    "h": 102.5
  },
  "luminance": 0.37651
}

Semantic roles & 50–950 ramp

primary
#B5A72D
secondary
#767FC7
accent
#55E344
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B5A72D

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

Preview Lab → · Contrast checker → · Palette generator →

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