#B5A72B#B5A72B

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

Color values

HEX#B5A72B
RGBrgb(181, 167, 43)
HSLhsl(54, 62%, 44%)
HSVhsv(54, 76%, 71%)
CMYKcmyk(0%, 7.7%, 76.2%, 29%)
CIE-LABlab(67.75, -8.47, 61.36)
CIE-LCHlch(67.75, 61.94, 97.86°)
OKLaboklab(71.91% -0.0301 0.1343)
OKLCHoklch(71.91% 0.138 102.6)
XYZxyz(33.3123, 37.6371, 7.7950)
Luminance0.3764 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5A72B #2B39B5
analogous
#B5622B #B5A72B #7EB52B
triadic
#B5A72B #2BB5A7 #A72BB5
tetradic
#B5A72B #2BB562 #2B39B5 #B52B7E
square
#B5A72B #2BB562 #2B39B5 #B52B7E
split-complementary
#B5A72B #2B7EB5 #622BB5
monochromatic
#524C14 #84791F #B5A72B #D4C649 #E0D57B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B5A72B#FFFFFF#000000##000000
##B5A72B1.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)
#B7A210
Deuteranopia (green-blind)
#BBA834
Tritanopia (blue-blind)
#C39B8F
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #b5a72b;
/* rgb */ color: rgb(181, 167, 43);
/* oklch */ color: oklch(71.9% 0.138 102.6);
Tailwind
colors: {
  custom: {
    50: '#cfc06e',
    500: '#b5a72b',
    950: '#000000',
  },
}
SCSS
$custom: #b5a72b;
$custom-light: #cfc06e;
$custom-dark: #000000;
JSON
{
  "hex": "#b5a72b",
  "rgb": {
    "r": 181,
    "g": 167,
    "b": 43
  },
  "hsl": {
    "h": 53.913,
    "s": 61.607,
    "l": 43.922
  },
  "oklch": {
    "l": 0.71911,
    "c": 0.13763,
    "h": 102.6
  },
  "luminance": 0.37636
}

Semantic roles & 50–950 ramp

primary
#B5A72B
secondary
#747DC8
accent
#53E543
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B5A72B

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

Preview Lab → · Contrast checker → · Palette generator →

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