#B5AF40#B5AF40

#B5AF40 is a light, vivid yellow. Relative luminance 0.409; OKLCH L 73.8% C 0.131 H 106.2°. Best body text is #000000 at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#B5AF40
RGBrgb(181, 175, 64)
HSLhsl(57, 48%, 48%)
HSVhsv(57, 65%, 71%)
CMYKcmyk(0%, 3.3%, 64.6%, 29%)
CIE-LABlab(70.07, -11.56, 55.61)
CIE-LCHlch(70.07, 56.80, 101.75°)
OKLaboklab(73.8% -0.0366 0.1259)
OKLCHoklch(73.8% 0.131 106.2)
XYZxyz(35.3127, 40.8551, 10.8752)
Luminance0.4085 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5AF40 #4046B5
analogous
#B57440 #B5AF40 #80B540
triadic
#B5AF40 #40B5AF #AF40B5
tetradic
#B5AF40 #40B574 #4046B5 #B54080
square
#B5AF40 #40B574 #4046B5 #B54080
split-complementary
#B5AF40 #4080B5 #7440B5
monochromatic
#5B5820 #888330 #B5AF40 #CAC568 #DAD696

Accessibility & contrast

On white

2.29
#B5AF40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.17
#B5AF40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5AF40
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5AF40#FFFFFF#000000##000000
##B5AF401.002.299.179.17
#FFFFFF2.291.0021.0021.00
#0000009.1721.001.001.00
##0000009.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA932
Deuteranopia (green-blind)
#C0AD47
Tritanopia (blue-blind)
#C2A498
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #b5af40;
/* rgb */ color: rgb(181, 175, 64);
/* oklch */ color: oklch(73.8% 0.131 106.2);
Tailwind
colors: {
  custom: {
    50: '#cec67a',
    500: '#b5af40',
    950: '#000000',
  },
}
SCSS
$custom: #b5af40;
$custom-light: #cec67a;
$custom-dark: #000000;
JSON
{
  "hex": "#b5af40",
  "rgb": {
    "r": 181,
    "g": 175,
    "b": 64
  },
  "hsl": {
    "h": 56.923,
    "s": 47.755,
    "l": 48.039
  },
  "oklch": {
    "l": 0.73804,
    "c": 0.13108,
    "h": 106.2
  },
  "luminance": 0.40854
}

Semantic roles & 50–950 ramp

primary
#B5AF40
secondary
#8B8EC5
accent
#57D750
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#14130A
muted
#83827C

Preview Lab

Preview with #B5AF40

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

Preview Lab → · Contrast checker → · Palette generator →

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