#B5AF30#B5AF30

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

Color values

HEX#B5AF30
RGBrgb(181, 175, 48)
HSLhsl(57, 58%, 45%)
HSVhsv(57, 73%, 71%)
CMYKcmyk(0%, 3.3%, 73.5%, 29%)
CIE-LABlab(69.96, -12.42, 61.70)
CIE-LCHlch(69.96, 62.94, 101.38°)
OKLaboklab(73.68% -0.0407 0.136)
OKLCHoklch(73.68% 0.142 106.7)
XYZxyz(34.9209, 40.6983, 8.8118)
Luminance0.4070 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5AF30 #3036B5
analogous
#B56C30 #B5AF30 #79B530
triadic
#B5AF30 #30B5AF #AF30B5
tetradic
#B5AF30 #30B56C #3036B5 #B53079
square
#B5AF30 #30B56C #3036B5 #B53079
split-complementary
#B5AF30 #3079B5 #6C30B5
monochromatic
#545116 #858023 #B5AF30 #D1CB51 #DEDA82

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B5AF30#FFFFFF#000000##000000
##B5AF301.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)
#BEA817
Deuteranopia (green-blind)
#C1AD39
Tritanopia (blue-blind)
#C2A397
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #b5af30;
/* rgb */ color: rgb(181, 175, 48);
/* oklch */ color: oklch(73.7% 0.142 106.7);
Tailwind
colors: {
  custom: {
    50: '#cfc672',
    500: '#b5af30',
    950: '#000000',
  },
}
SCSS
$custom: #b5af30;
$custom-light: #cfc672;
$custom-dark: #000000;
JSON
{
  "hex": "#b5af30",
  "rgb": {
    "r": 181,
    "g": 175,
    "b": 48
  },
  "hsl": {
    "h": 57.293,
    "s": 58.079,
    "l": 44.902
  },
  "oklch": {
    "l": 0.73681,
    "c": 0.14195,
    "h": 106.7
  },
  "luminance": 0.40697
}

Semantic roles & 50–950 ramp

primary
#B5AF30
secondary
#7A7DC7
accent
#4DE146
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B5AF30

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

Preview Lab → · Contrast checker → · Palette generator →

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