#B5A82E#B5A82E

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

Color values

HEX#B5A82E
RGBrgb(181, 168, 46)
HSLhsl(54, 59%, 45%)
HSVhsv(54, 75%, 71%)
CMYKcmyk(0%, 7.2%, 74.6%, 29%)
CIE-LABlab(68.04, -8.87, 60.59)
CIE-LCHlch(68.04, 61.23, 98.33°)
OKLaboklab(72.15% -0.0309 0.1332)
OKLCHoklch(72.15% 0.137 103.1)
XYZxyz(33.5533, 38.0277, 8.1569)
Luminance0.3803 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5A82E #2E3BB5
analogous
#B5652E #B5A82E #7FB52E
triadic
#B5A82E #2EB5A8 #A82EB5
tetradic
#B5A82E #2EB565 #2E3BB5 #B52E7F
square
#B5A82E #2EB565 #2E3BB5 #B52E7F
split-complementary
#B5A82E #2E7FB5 #652EB5
monochromatic
#534D15 #847B22 #B5A82E #D2C54E #DED57F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B5A82E#FFFFFF#000000##000000
##B5A82E1.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)
#B8A216
Deuteranopia (green-blind)
#BCA837
Tritanopia (blue-blind)
#C39C91
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #b5a82e;
/* rgb */ color: rgb(181, 168, 46);
/* oklch */ color: oklch(72.1% 0.137 103.1);
Tailwind
colors: {
  custom: {
    50: '#cfc170',
    500: '#b5a82e',
    950: '#000000',
  },
}
SCSS
$custom: #b5a82e;
$custom-light: #cfc170;
$custom-dark: #000000;
JSON
{
  "hex": "#b5a82e",
  "rgb": {
    "r": 181,
    "g": 168,
    "b": 46
  },
  "hsl": {
    "h": 54.222,
    "s": 59.471,
    "l": 44.51
  },
  "oklch": {
    "l": 0.72146,
    "c": 0.13678,
    "h": 103.1
  },
  "luminance": 0.38026
}

Semantic roles & 50–950 ramp

primary
#B5A82E
secondary
#787FC7
accent
#54E345
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B5A82E

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

Preview Lab → · Contrast checker → · Palette generator →

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