#B5AA2F#B5AA2F

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

Color values

HEX#B5AA2F
RGBrgb(181, 170, 47)
HSLhsl(55, 59%, 45%)
HSVhsv(55, 74%, 71%)
CMYKcmyk(0%, 6.1%, 74%, 29%)
CIE-LABlab(68.59, -9.87, 60.75)
CIE-LCHlch(68.59, 61.55, 99.23°)
OKLaboklab(72.59% -0.0336 0.1338)
OKLCHoklch(72.59% 0.138 104.1)
XYZxyz(33.9453, 38.7798, 8.3860)
Luminance0.3878 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5AA2F #2F3AB5
analogous
#B5672F #B5AA2F #7DB52F
triadic
#B5AA2F #2FB5AA #AA2FB5
tetradic
#B5AA2F #2FB567 #2F3AB5 #B52F7D
square
#B5AA2F #2FB567 #2F3AB5 #B52F7D
split-complementary
#B5AA2F #2F7DB5 #672FB5
monochromatic
#544F16 #847C22 #B5AA2F #D1C750 #DED680

Accessibility & contrast

On white

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

On black

8.76
#B5AA2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5AA2F
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5AA2F#FFFFFF#000000##000000
##B5AA2F1.002.408.768.76
#FFFFFF2.401.0021.0021.00
#0000008.7621.001.001.00
##0000008.7621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b5aa2f;
/* rgb */ color: rgb(181, 170, 47);
/* oklch */ color: oklch(72.6% 0.138 104.1);
Tailwind
colors: {
  custom: {
    50: '#cfc371',
    500: '#b5aa2f',
    950: '#000000',
  },
}
SCSS
$custom: #b5aa2f;
$custom-light: #cfc371;
$custom-dark: #000000;
JSON
{
  "hex": "#b5aa2f",
  "rgb": {
    "r": 181,
    "g": 170,
    "b": 47
  },
  "hsl": {
    "h": 55.075,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.72586,
    "c": 0.13795,
    "h": 104.1
  },
  "luminance": 0.38778
}

Semantic roles & 50–950 ramp

primary
#B5AA2F
secondary
#797FC7
accent
#53E246
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B5AA2F

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

Preview Lab → · Contrast checker → · Palette generator →

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