#B5AF2F#B5AF2F

#B5AF2F is a light, vivid yellow. Relative luminance 0.407; OKLCH L 73.7% C 0.143 H 106.7°. Best body text is #000000 at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#B5AF2F
RGBrgb(181, 175, 47)
HSLhsl(57, 59%, 45%)
HSVhsv(57, 74%, 71%)
CMYKcmyk(0%, 3.3%, 74%, 29%)
CIE-LABlab(69.96, -12.47, 62.05)
CIE-LCHlch(69.96, 63.29, 101.36°)
OKLaboklab(73.67% -0.0409 0.1365)
OKLCHoklch(73.67% 0.143 106.7)
XYZxyz(34.9005, 40.6902, 8.7044)
Luminance0.4069 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5AF2F #2F35B5
analogous
#B56C2F #B5AF2F #78B52F
triadic
#B5AF2F #2FB5AF #AF2FB5
tetradic
#B5AF2F #2FB56C #2F35B5 #B52F78
square
#B5AF2F #2FB56C #2F35B5 #B52F78
split-complementary
#B5AF2F #2F78B5 #6C2FB5
monochromatic
#545116 #848022 #B5AF2F #D1CC50 #DEDA80

Accessibility & contrast

On white

2.30
#B5AF2F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.14
#B5AF2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5AF2F
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5AF2F#FFFFFF#000000##000000
##B5AF2F1.002.309.149.14
#FFFFFF2.301.0021.0021.00
#0000009.1421.001.001.00
##0000009.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA815
Deuteranopia (green-blind)
#C1AD39
Tritanopia (blue-blind)
#C2A396
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #b5af2f;
/* rgb */ color: rgb(181, 175, 47);
/* oklch */ color: oklch(73.7% 0.143 106.7);
Tailwind
colors: {
  custom: {
    50: '#cfc671',
    500: '#b5af2f',
    950: '#000000',
  },
}
SCSS
$custom: #b5af2f;
$custom-light: #cfc671;
$custom-dark: #000000;
JSON
{
  "hex": "#b5af2f",
  "rgb": {
    "r": 181,
    "g": 175,
    "b": 47
  },
  "hsl": {
    "h": 57.313,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.73674,
    "c": 0.14253,
    "h": 106.7
  },
  "luminance": 0.40689
}

Semantic roles & 50–950 ramp

primary
#B5AF2F
secondary
#797CC7
accent
#4DE246
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B5AF2F

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

Preview Lab → · Contrast checker → · Palette generator →

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