#B5AA2D#B5AA2D

#B5AA2D is a light, vivid yellow. Relative luminance 0.388; OKLCH L 72.6% C 0.139 H 104.2°. Best body text is #000000 at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#B5AA2D
RGBrgb(181, 170, 45)
HSLhsl(55, 60%, 44%)
HSVhsv(55, 75%, 71%)
CMYKcmyk(0%, 6.1%, 75.1%, 29%)
CIE-LABlab(68.58, -9.96, 61.44)
CIE-LCHlch(68.58, 62.24, 99.21°)
OKLaboklab(72.57% -0.0341 0.1349)
OKLCHoklch(72.57% 0.139 104.2)
XYZxyz(33.9059, 38.7641, 8.1783)
Luminance0.3876 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5AA2D #2D38B5
analogous
#B5662D #B5AA2D #7CB52D
triadic
#B5AA2D #2DB5AA #AA2DB5
tetradic
#B5AA2D #2DB566 #2D38B5 #B52D7C
square
#B5AA2D #2DB566 #2D38B5 #B52D7C
split-complementary
#B5AA2D #2D7CB5 #662DB5
monochromatic
#534E15 #847C21 #B5AA2D #D3C84D #DFD77E

Accessibility & contrast

On white

2.40
#B5AA2D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.75
#B5AA2D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5AA2D
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5AA2D#FFFFFF#000000##000000
##B5AA2D1.002.408.758.75
#FFFFFF2.401.0021.0021.00
#0000008.7521.001.001.00
##0000008.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA413
Deuteranopia (green-blind)
#BDAA36
Tritanopia (blue-blind)
#C39E92
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #b5aa2d;
/* rgb */ color: rgb(181, 170, 45);
/* oklch */ color: oklch(72.6% 0.139 104.2);
Tailwind
colors: {
  custom: {
    50: '#cfc270',
    500: '#b5aa2d',
    950: '#000000',
  },
}
SCSS
$custom: #b5aa2d;
$custom-light: #cfc270;
$custom-dark: #000000;
JSON
{
  "hex": "#b5aa2d",
  "rgb": {
    "r": 181,
    "g": 170,
    "b": 45
  },
  "hsl": {
    "h": 55.147,
    "s": 60.177,
    "l": 44.314
  },
  "oklch": {
    "l": 0.72573,
    "c": 0.1391,
    "h": 104.2
  },
  "luminance": 0.38763
}

Semantic roles & 50–950 ramp

primary
#B5AA2D
secondary
#767DC7
accent
#51E344
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B5AA2D

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

Preview Lab → · Contrast checker → · Palette generator →

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