#B5A72E#B5A72E

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

Color values

HEX#B5A72E
RGBrgb(181, 167, 46)
HSLhsl(54, 59%, 45%)
HSVhsv(54, 75%, 71%)
CMYKcmyk(0%, 7.7%, 74.6%, 29%)
CIE-LABlab(67.77, -8.35, 60.33)
CIE-LCHlch(67.77, 60.90, 97.88°)
OKLaboklab(71.93% -0.0294 0.1327)
OKLCHoklch(71.93% 0.136 102.5)
XYZxyz(33.3694, 37.6599, 8.0956)
Luminance0.3766 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5A72E #2E3CB5
analogous
#B5642E #B5A72E #7FB52E
triadic
#B5A72E #2EB5A7 #A72EB5
tetradic
#B5A72E #2EB564 #2E3CB5 #B52E7F
square
#B5A72E #2EB564 #2E3CB5 #B52E7F
split-complementary
#B5A72E #2E7FB5 #642EB5
monochromatic
#534D15 #847A22 #B5A72E #D2C44E #DED57F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B5A72E#FFFFFF#000000##000000
##B5A72E1.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)
#B7A217
Deuteranopia (green-blind)
#BBA837
Tritanopia (blue-blind)
#C39B90
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #b5a72e;
/* rgb */ color: rgb(181, 167, 46);
/* oklch */ color: oklch(71.9% 0.136 102.5);
Tailwind
colors: {
  custom: {
    50: '#cfc070',
    500: '#b5a72e',
    950: '#000000',
  },
}
SCSS
$custom: #b5a72e;
$custom-light: #cfc070;
$custom-dark: #000000;
JSON
{
  "hex": "#b5a72e",
  "rgb": {
    "r": 181,
    "g": 167,
    "b": 46
  },
  "hsl": {
    "h": 53.778,
    "s": 59.471,
    "l": 44.51
  },
  "oklch": {
    "l": 0.7193,
    "c": 0.13592,
    "h": 102.5
  },
  "luminance": 0.37658
}

Semantic roles & 50–950 ramp

primary
#B5A72E
secondary
#7880C7
accent
#55E345
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B5A72E

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

Preview Lab → · Contrast checker → · Palette generator →

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