#B5A231#B5A231

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

Color values

HEX#B5A231
RGBrgb(181, 162, 49)
HSLhsl(51, 57%, 45%)
HSVhsv(51, 73%, 71%)
CMYKcmyk(0%, 10.5%, 72.9%, 29%)
CIE-LABlab(66.43, -5.57, 57.95)
CIE-LCHlch(66.43, 58.22, 95.49°)
OKLaboklab(70.88% -0.0213 0.1282)
OKLCHoklch(70.88% 0.13 99.4)
XYZxyz(32.5323, 35.8877, 8.1186)
Luminance0.3589 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5A231 #3144B5
analogous
#B56031 #B5A231 #86B531
triadic
#B5A231 #31B5A2 #A231B5
tetradic
#B5A231 #31B560 #3144B5 #B53186
square
#B5A231 #31B560 #3144B5 #B53186
split-complementary
#B5A231 #3186B5 #6031B5
monochromatic
#554C17 #857724 #B5A231 #D0BE53 #DDD083

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B5A231#FFFFFF#000000##000000
##B5A2311.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)
#B29E1E
Deuteranopia (green-blind)
#B7A538
Tritanopia (blue-blind)
#C3968C
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #b5a231;
/* rgb */ color: rgb(181, 162, 49);
/* oklch */ color: oklch(70.9% 0.130 99.4);
Tailwind
colors: {
  custom: {
    50: '#cfbd71',
    500: '#b5a231',
    950: '#000000',
  },
}
SCSS
$custom: #b5a231;
$custom-light: #cfbd71;
$custom-dark: #000000;
JSON
{
  "hex": "#b5a231",
  "rgb": {
    "r": 181,
    "g": 162,
    "b": 49
  },
  "hsl": {
    "h": 51.364,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.70876,
    "c": 0.12997,
    "h": 99.4
  },
  "luminance": 0.35886
}

Semantic roles & 50–950 ramp

primary
#B5A231
secondary
#7B86C7
accent
#5DE147
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B5A231

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

Preview Lab → · Contrast checker → · Palette generator →

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