#B5AA38#B5AA38

#B5AA38 is a light, vivid yellow. Relative luminance 0.389; OKLCH L 72.7% C 0.132 H 103.8°. Best body text is #000000 at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#B5AA38
RGBrgb(181, 170, 56)
HSLhsl(55, 53%, 46%)
HSVhsv(55, 69%, 71%)
CMYKcmyk(0%, 6.1%, 69.1%, 29%)
CIE-LABlab(68.65, -9.43, 57.42)
CIE-LCHlch(68.65, 58.19, 99.32°)
OKLaboklab(72.65% -0.0314 0.1284)
OKLCHoklch(72.65% 0.132 103.8)
XYZxyz(34.1460, 38.8601, 9.4427)
Luminance0.3886 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5AA38 #3843B5
analogous
#B56C38 #B5AA38 #82B538
triadic
#B5AA38 #38B5AA #AA38B5
tetradic
#B5AA38 #38B56C #3843B5 #B53882
square
#B5AA38 #38B56C #3843B5 #B53882
split-complementary
#B5AA38 #3882B5 #6C38B5
monochromatic
#58521B #867E2A #B5AA38 #CDC35D #DBD48C

Accessibility & contrast

On white

2.39
#B5AA38 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.77
#B5AA38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5AA38
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5AA38#FFFFFF#000000##000000
##B5AA381.002.398.778.77
#FFFFFF2.391.0021.0021.00
#0000008.7721.001.001.00
##0000008.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A427
Deuteranopia (green-blind)
#BDAA3F
Tritanopia (blue-blind)
#C29E93
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #b5aa38;
/* rgb */ color: rgb(181, 170, 56);
/* oklch */ color: oklch(72.7% 0.132 103.8);
Tailwind
colors: {
  custom: {
    50: '#cec375',
    500: '#b5aa38',
    950: '#000000',
  },
}
SCSS
$custom: #b5aa38;
$custom-light: #cec375;
$custom-dark: #000000;
JSON
{
  "hex": "#b5aa38",
  "rgb": {
    "r": 181,
    "g": 170,
    "b": 56
  },
  "hsl": {
    "h": 54.72,
    "s": 52.743,
    "l": 46.471
  },
  "oklch": {
    "l": 0.72651,
    "c": 0.13216,
    "h": 103.8
  },
  "luminance": 0.38859
}

Semantic roles & 50–950 ramp

primary
#B5AA38
secondary
#8389C6
accent
#58DC4C
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141209
muted
#83817B

Preview Lab

Preview with #B5AA38

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

Preview Lab → · Contrast checker → · Palette generator →

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