#B5A82A#B5A82A

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

Color values

HEX#B5A82A
RGBrgb(181, 168, 42)
HSLhsl(54, 62%, 44%)
HSVhsv(54, 77%, 71%)
CMYKcmyk(0%, 7.2%, 76.8%, 29%)
CIE-LABlab(68.02, -9.04, 61.94)
CIE-LCHlch(68.02, 62.59, 98.30°)
OKLaboklab(72.12% -0.0317 0.1354)
OKLCHoklch(72.12% 0.139 103.2)
XYZxyz(33.4781, 37.9976, 7.7609)
Luminance0.3800 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5A82A #2A37B5
analogous
#B5622A #B5A82A #7CB52A
triadic
#B5A82A #2AB5A8 #A82AB5
tetradic
#B5A82A #2AB562 #2A37B5 #B52A7C
square
#B5A82A #2AB562 #2A37B5 #B52A7C
split-complementary
#B5A82A #2A7CB5 #622AB5
monochromatic
#524C13 #837A1E #B5A82A #D4C748 #E0D679

Accessibility & contrast

On white

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

On black

8.60
#B5A82A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5A82A
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5A82A#FFFFFF#000000##000000
##B5A82A1.002.448.608.60
#FFFFFF2.441.0021.0021.00
#0000008.6021.001.001.00
##0000008.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A20C
Deuteranopia (green-blind)
#BCA834
Tritanopia (blue-blind)
#C39C90
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #b5a82a;
/* rgb */ color: rgb(181, 168, 42);
/* oklch */ color: oklch(72.1% 0.139 103.2);
Tailwind
colors: {
  custom: {
    50: '#cfc16e',
    500: '#b5a82a',
    950: '#000000',
  },
}
SCSS
$custom: #b5a82a;
$custom-light: #cfc16e;
$custom-dark: #000000;
JSON
{
  "hex": "#b5a82a",
  "rgb": {
    "r": 181,
    "g": 168,
    "b": 42
  },
  "hsl": {
    "h": 54.388,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.72121,
    "c": 0.13902,
    "h": 103.2
  },
  "luminance": 0.37996
}

Semantic roles & 50–950 ramp

primary
#B5A82A
secondary
#737BC8
accent
#52E542
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B5A82A

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

Preview Lab → · Contrast checker → · Palette generator →

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