#B5A42A#B5A42A

#B5A42A is a light, vivid yellow. Relative luminance 0.365; OKLCH L 71.3% C 0.136 H 101.0°. Best body text is #000000 at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#B5A42A
RGBrgb(181, 164, 42)
HSLhsl(53, 62%, 44%)
HSVhsv(53, 77%, 71%)
CMYKcmyk(0%, 9.4%, 76.8%, 29%)
CIE-LABlab(66.93, -6.93, 60.94)
CIE-LCHlch(66.93, 61.33, 96.49°)
OKLaboklab(71.26% -0.0258 0.1332)
OKLCHoklch(71.26% 0.136 101)
XYZxyz(32.7510, 36.5434, 7.5185)
Luminance0.3654 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5A42A #2A3BB5
analogous
#B55E2A #B5A42A #80B52A
triadic
#B5A42A #2AB5A4 #A42AB5
tetradic
#B5A42A #2AB55E #2A3BB5 #B52A80
square
#B5A42A #2AB55E #2A3BB5 #B52A80
split-complementary
#B5A42A #2A80B5 #5E2AB5
monochromatic
#524A13 #83771E #B5A42A #D4C348 #E0D379

Accessibility & contrast

On white

2.53
#B5A42A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.31
#B5A42A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5A42A
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5A42A#FFFFFF#000000##000000
##B5A42A1.002.538.318.31
#FFFFFF2.531.0021.0021.00
#0000008.3121.001.001.00
##0000008.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B49F0F
Deuteranopia (green-blind)
#B9A633
Tritanopia (blue-blind)
#C3988D
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #b5a42a;
/* rgb */ color: rgb(181, 164, 42);
/* oklch */ color: oklch(71.3% 0.136 101.0);
Tailwind
colors: {
  custom: {
    50: '#cfbe6e',
    500: '#b5a42a',
    950: '#000000',
  },
}
SCSS
$custom: #b5a42a;
$custom-light: #cfbe6e;
$custom-dark: #000000;
JSON
{
  "hex": "#b5a42a",
  "rgb": {
    "r": 181,
    "g": 164,
    "b": 42
  },
  "hsl": {
    "h": 52.662,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.71259,
    "c": 0.13569,
    "h": 101
  },
  "luminance": 0.36542
}

Semantic roles & 50–950 ramp

primary
#B5A42A
secondary
#737DC8
accent
#56E542
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141208
muted
#83817B

Preview Lab

Preview with #B5A42A

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

Preview Lab → · Contrast checker → · Palette generator →

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