#B5AA2A#B5AA2A

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

Color values

HEX#B5AA2A
RGBrgb(181, 170, 42)
HSLhsl(55, 62%, 44%)
HSVhsv(55, 77%, 71%)
CMYKcmyk(0%, 6.1%, 76.8%, 29%)
CIE-LABlab(68.56, -10.09, 62.44)
CIE-LCHlch(68.56, 63.25, 99.18°)
OKLaboklab(72.56% -0.0347 0.1364)
OKLCHoklch(72.56% 0.141 104.3)
XYZxyz(33.8502, 38.7418, 7.8849)
Luminance0.3874 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5AA2A #2A35B5
analogous
#B5642A #B5AA2A #7AB52A
triadic
#B5AA2A #2AB5AA #AA2AB5
tetradic
#B5AA2A #2AB564 #2A35B5 #B52A7A
square
#B5AA2A #2AB564 #2A35B5 #B52A7A
split-complementary
#B5AA2A #2A7AB5 #642AB5
monochromatic
#524D13 #837B1E #B5AA2A #D4C948 #E0D879

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B5AA2A#FFFFFF#000000##000000
##B5AA2A1.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)
#BAA40B
Deuteranopia (green-blind)
#BDAA34
Tritanopia (blue-blind)
#C39E92
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #b5aa2a;
/* rgb */ color: rgb(181, 170, 42);
/* oklch */ color: oklch(72.6% 0.141 104.3);
Tailwind
colors: {
  custom: {
    50: '#cfc26e',
    500: '#b5aa2a',
    950: '#000000',
  },
}
SCSS
$custom: #b5aa2a;
$custom-light: #cfc26e;
$custom-dark: #000000;
JSON
{
  "hex": "#b5aa2a",
  "rgb": {
    "r": 181,
    "g": 170,
    "b": 42
  },
  "hsl": {
    "h": 55.252,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.72555,
    "c": 0.14075,
    "h": 104.3
  },
  "luminance": 0.3874
}

Semantic roles & 50–950 ramp

primary
#B5AA2A
secondary
#737AC8
accent
#4FE542
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B5AA2A

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

Preview Lab → · Contrast checker → · Palette generator →

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