#B5A232#B5A232

#B5A232 is a light, vivid yellow. Relative luminance 0.359; OKLCH L 70.9% C 0.129 H 99.3°. Best body text is #000000 at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#B5A232
RGBrgb(181, 162, 50)
HSLhsl(51, 57%, 45%)
HSVhsv(51, 72%, 71%)
CMYKcmyk(0%, 10.5%, 72.4%, 29%)
CIE-LABlab(66.44, -5.52, 57.57)
CIE-LCHlch(66.44, 57.84, 95.47°)
OKLaboklab(70.88% -0.021 0.1276)
OKLCHoklch(70.88% 0.129 99.3)
XYZxyz(32.5537, 35.8963, 8.2310)
Luminance0.3589 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5A232 #3245B5
analogous
#B56132 #B5A232 #86B532
triadic
#B5A232 #32B5A2 #A232B5
tetradic
#B5A232 #32B561 #3245B5 #B53286
square
#B5A232 #32B561 #3245B5 #B53286
split-complementary
#B5A232 #3286B5 #6132B5
monochromatic
#554C18 #857725 #B5A232 #D0BE54 #DDD084

Accessibility & contrast

On white

2.57
#B5A232 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.18
#B5A232 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5A232
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5A232#FFFFFF#000000##000000
##B5A2321.002.578.188.18
#FFFFFF2.571.0021.0021.00
#0000008.1821.001.001.00
##0000008.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29E20
Deuteranopia (green-blind)
#B7A539
Tritanopia (blue-blind)
#C3968C
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #b5a232;
/* rgb */ color: rgb(181, 162, 50);
/* oklch */ color: oklch(70.9% 0.129 99.3);
Tailwind
colors: {
  custom: {
    50: '#cfbd71',
    500: '#b5a232',
    950: '#000000',
  },
}
SCSS
$custom: #b5a232;
$custom-light: #cfbd71;
$custom-dark: #000000;
JSON
{
  "hex": "#b5a232",
  "rgb": {
    "r": 181,
    "g": 162,
    "b": 50
  },
  "hsl": {
    "h": 51.298,
    "s": 56.71,
    "l": 45.294
  },
  "oklch": {
    "l": 0.70883,
    "c": 0.12933,
    "h": 99.3
  },
  "luminance": 0.35895
}

Semantic roles & 50–950 ramp

primary
#B5A232
secondary
#7C87C7
accent
#5EE048
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B5A232

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

Preview Lab → · Contrast checker → · Palette generator →

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