#B5A82F#B5A82F

#B5A82F is a light, vivid yellow. Relative luminance 0.380; OKLCH L 72.2% C 0.136 H 103.0°. Best body text is #000000 at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#B5A82F
RGBrgb(181, 168, 47)
HSLhsl(54, 59%, 45%)
HSVhsv(54, 74%, 71%)
CMYKcmyk(0%, 7.2%, 74%, 29%)
CIE-LABlab(68.05, -8.83, 60.24)
CIE-LCHlch(68.05, 60.88, 98.34°)
OKLaboklab(72.15% -0.0307 0.1327)
OKLCHoklch(72.15% 0.136 103)
XYZxyz(33.5733, 38.0357, 8.2619)
Luminance0.3803 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5A82F #2F3CB5
analogous
#B5652F #B5A82F #7FB52F
triadic
#B5A82F #2FB5A8 #A82FB5
tetradic
#B5A82F #2FB565 #2F3CB5 #B52F7F
square
#B5A82F #2FB565 #2F3CB5 #B52F7F
split-complementary
#B5A82F #2F7FB5 #652FB5
monochromatic
#544E16 #847B22 #B5A82F #D1C550 #DED580

Accessibility & contrast

On white

2.44
#B5A82F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.61
#B5A82F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5A82F
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5A82F#FFFFFF#000000##000000
##B5A82F1.002.448.618.61
#FFFFFF2.441.0021.0021.00
#0000008.6121.001.001.00
##0000008.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A218
Deuteranopia (green-blind)
#BCA838
Tritanopia (blue-blind)
#C39C91
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #b5a82f;
/* rgb */ color: rgb(181, 168, 47);
/* oklch */ color: oklch(72.2% 0.136 103.0);
Tailwind
colors: {
  custom: {
    50: '#cfc170',
    500: '#b5a82f',
    950: '#000000',
  },
}
SCSS
$custom: #b5a82f;
$custom-light: #cfc170;
$custom-dark: #000000;
JSON
{
  "hex": "#b5a82f",
  "rgb": {
    "r": 181,
    "g": 168,
    "b": 47
  },
  "hsl": {
    "h": 54.179,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.72153,
    "c": 0.13619,
    "h": 103
  },
  "luminance": 0.38034
}

Semantic roles & 50–950 ramp

primary
#B5A82F
secondary
#7980C7
accent
#55E246
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B5A82F

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

Preview Lab → · Contrast checker → · Palette generator →

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