#B5A431#B5A431

#B5A431 is a light, vivid yellow. Relative luminance 0.366; OKLCH L 71.3% C 0.132 H 100.6°. Best body text is #000000 at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#B5A431
RGBrgb(181, 164, 49)
HSLhsl(52, 57%, 45%)
HSVhsv(52, 73%, 71%)
CMYKcmyk(0%, 9.4%, 72.9%, 29%)
CIE-LABlab(66.97, -6.63, 58.47)
CIE-LCHlch(66.97, 58.85, 96.47°)
OKLaboklab(71.3% -0.0243 0.1293)
OKLCHoklch(71.3% 0.132 100.6)
XYZxyz(32.8874, 36.5979, 8.2369)
Luminance0.3660 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5A431 #3142B5
analogous
#B56231 #B5A431 #84B531
triadic
#B5A431 #31B5A4 #A431B5
tetradic
#B5A431 #31B562 #3142B5 #B53184
square
#B5A431 #31B562 #3142B5 #B53184
split-complementary
#B5A431 #3184B5 #6231B5
monochromatic
#554D17 #857824 #B5A431 #D0C053 #DDD283

Accessibility & contrast

On white

2.52
#B5A431 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.32
#B5A431 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5A431
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5A431#FFFFFF#000000##000000
##B5A4311.002.528.328.32
#FFFFFF2.521.0021.0021.00
#0000008.3221.001.001.00
##0000008.3221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b5a431;
/* rgb */ color: rgb(181, 164, 49);
/* oklch */ color: oklch(71.3% 0.132 100.6);
Tailwind
colors: {
  custom: {
    50: '#cfbe71',
    500: '#b5a431',
    950: '#000000',
  },
}
SCSS
$custom: #b5a431;
$custom-light: #cfbe71;
$custom-dark: #000000;
JSON
{
  "hex": "#b5a431",
  "rgb": {
    "r": 181,
    "g": 164,
    "b": 49
  },
  "hsl": {
    "h": 52.273,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.71305,
    "c": 0.13159,
    "h": 100.6
  },
  "luminance": 0.36596
}

Semantic roles & 50–950 ramp

primary
#B5A431
secondary
#7B85C7
accent
#5BE147
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B5A431

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

Preview Lab → · Contrast checker → · Palette generator →

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