#B5AC2F#B5AC2F

#B5AC2F is a light, vivid yellow. Relative luminance 0.395; OKLCH L 73.0% C 0.140 H 105.2°. Best body text is #000000 at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#B5AC2F
RGBrgb(181, 172, 47)
HSLhsl(56, 59%, 45%)
HSVhsv(56, 74%, 71%)
CMYKcmyk(0%, 5%, 74%, 29%)
CIE-LABlab(69.14, -10.91, 61.27)
CIE-LCHlch(69.14, 62.24, 100.10°)
OKLaboklab(73.02% -0.0365 0.1349)
OKLCHoklch(73.02% 0.14 105.2)
XYZxyz(34.3231, 39.5354, 8.5119)
Luminance0.3953 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5AC2F #2F38B5
analogous
#B5692F #B5AC2F #7BB52F
triadic
#B5AC2F #2FB5AC #AC2FB5
tetradic
#B5AC2F #2FB569 #2F38B5 #B52F7B
square
#B5AC2F #2FB569 #2F38B5 #B52F7B
split-complementary
#B5AC2F #2F7BB5 #692FB5
monochromatic
#545016 #847E22 #B5AC2F #D1C950 #DED880

Accessibility & contrast

On white

2.36
#B5AC2F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.91
#B5AC2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5AC2F
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5AC2F#FFFFFF#000000##000000
##B5AC2F1.002.368.918.91
#FFFFFF2.361.0021.0021.00
#0000008.9121.001.001.00
##0000008.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#BBA616
Deuteranopia (green-blind)
#BFAB38
Tritanopia (blue-blind)
#C3A094
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #b5ac2f;
/* rgb */ color: rgb(181, 172, 47);
/* oklch */ color: oklch(73.0% 0.140 105.2);
Tailwind
colors: {
  custom: {
    50: '#cfc471',
    500: '#b5ac2f',
    950: '#000000',
  },
}
SCSS
$custom: #b5ac2f;
$custom-light: #cfc471;
$custom-dark: #000000;
JSON
{
  "hex": "#b5ac2f",
  "rgb": {
    "r": 181,
    "g": 172,
    "b": 47
  },
  "hsl": {
    "h": 55.97,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.7302,
    "c": 0.13975,
    "h": 105.2
  },
  "luminance": 0.39534
}

Semantic roles & 50–950 ramp

primary
#B5AC2F
secondary
#797EC7
accent
#50E246
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B5AC2F

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

Preview Lab → · Contrast checker → · Palette generator →

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