#B5AC3A#B5AC3A

#B5AC3A is a light, vivid yellow. Relative luminance 0.396; OKLCH L 73.1% C 0.133 H 104.8°. Best body text is #000000 at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#B5AC3A
RGBrgb(181, 172, 58)
HSLhsl(56, 51%, 47%)
HSVhsv(56, 68%, 71%)
CMYKcmyk(0%, 5%, 68%, 29%)
CIE-LABlab(69.21, -10.36, 57.19)
CIE-LCHlch(69.21, 58.12, 100.27°)
OKLaboklab(73.1% -0.0339 0.1282)
OKLCHoklch(73.1% 0.133 104.8)
XYZxyz(34.5737, 39.6356, 9.8314)
Luminance0.3963 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5AC3A #3A43B5
analogous
#B56F3A #B5AC3A #81B53A
triadic
#B5AC3A #3AB5AC #AC3AB5
tetradic
#B5AC3A #3AB56F #3A43B5 #B53A81
square
#B5AC3A #3AB56F #3A43B5 #B53A81
split-complementary
#B5AC3A #3A81B5 #6F3AB5
monochromatic
#58541C #87802B #B5AC3A #CCC460 #DBD58E

Accessibility & contrast

On white

2.35
#B5AC3A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.93
#B5AC3A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5AC3A
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5AC3A#FFFFFF#000000##000000
##B5AC3A1.002.358.938.93
#FFFFFF2.351.0021.0021.00
#0000008.9321.001.001.00
##0000008.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#BBA62A
Deuteranopia (green-blind)
#BEAB41
Tritanopia (blue-blind)
#C2A195
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #b5ac3a;
/* rgb */ color: rgb(181, 172, 58);
/* oklch */ color: oklch(73.1% 0.133 104.8);
Tailwind
colors: {
  custom: {
    50: '#cec477',
    500: '#b5ac3a',
    950: '#000000',
  },
}
SCSS
$custom: #b5ac3a;
$custom-light: #cec477;
$custom-dark: #000000;
JSON
{
  "hex": "#b5ac3a",
  "rgb": {
    "r": 181,
    "g": 172,
    "b": 58
  },
  "hsl": {
    "h": 55.61,
    "s": 51.464,
    "l": 46.863
  },
  "oklch": {
    "l": 0.731,
    "c": 0.13262,
    "h": 104.8
  },
  "luminance": 0.39634
}

Semantic roles & 50–950 ramp

primary
#B5AC3A
secondary
#858AC6
accent
#57DB4D
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141209
muted
#83817B

Preview Lab

Preview with #B5AC3A

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

Preview Lab → · Contrast checker → · Palette generator →

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