#B5AE31#B5AE31

#B5AE31 is a light, vivid yellow. Relative luminance 0.403; OKLCH L 73.5% C 0.140 H 106.1°. Best body text is #000000 at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#B5AE31
RGBrgb(181, 174, 49)
HSLhsl(57, 57%, 45%)
HSVhsv(57, 73%, 71%)
CMYKcmyk(0%, 3.9%, 72.9%, 29%)
CIE-LABlab(69.70, -11.86, 61.09)
CIE-LCHlch(69.70, 62.23, 100.99°)
OKLaboklab(73.47% -0.039 0.1349)
OKLCHoklch(73.47% 0.14 106.1)
XYZxyz(34.7479, 40.3189, 8.8571)
Luminance0.4032 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5AE31 #3138B5
analogous
#B56C31 #B5AE31 #7AB531
triadic
#B5AE31 #31B5AE #AE31B5
tetradic
#B5AE31 #31B56C #3138B5 #B5317A
square
#B5AE31 #31B56C #3138B5 #B5317A
split-complementary
#B5AE31 #317AB5 #6C31B5
monochromatic
#555117 #858024 #B5AE31 #D0CA53 #DDD983

Accessibility & contrast

On white

2.32
#B5AE31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.06
#B5AE31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5AE31
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5AE31#FFFFFF#000000##000000
##B5AE311.002.329.069.06
#FFFFFF2.321.0021.0021.00
#0000009.0621.001.001.00
##0000009.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA71A
Deuteranopia (green-blind)
#C0AD3A
Tritanopia (blue-blind)
#C2A296
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #b5ae31;
/* rgb */ color: rgb(181, 174, 49);
/* oklch */ color: oklch(73.5% 0.140 106.1);
Tailwind
colors: {
  custom: {
    50: '#cfc572',
    500: '#b5ae31',
    950: '#000000',
  },
}
SCSS
$custom: #b5ae31;
$custom-light: #cfc572;
$custom-dark: #000000;
JSON
{
  "hex": "#b5ae31",
  "rgb": {
    "r": 181,
    "g": 174,
    "b": 49
  },
  "hsl": {
    "h": 56.818,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.73469,
    "c": 0.14041,
    "h": 106.1
  },
  "luminance": 0.40318
}

Semantic roles & 50–950 ramp

primary
#B5AE31
secondary
#7B7FC7
accent
#4FE147
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B5AE31

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

Preview Lab → · Contrast checker → · Palette generator →

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