#B5A22F#B5A22F

#B5A22F is a light, vivid yellow. Relative luminance 0.359; OKLCH L 70.9% C 0.131 H 99.5°. Best body text is #000000 at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#B5A22F
RGBrgb(181, 162, 47)
HSLhsl(51, 59%, 45%)
HSVhsv(51, 74%, 71%)
CMYKcmyk(0%, 10.5%, 74%, 29%)
CIE-LABlab(66.42, -5.66, 58.69)
CIE-LCHlch(66.42, 58.96, 95.51°)
OKLaboklab(70.86% -0.0217 0.1294)
OKLCHoklch(70.86% 0.131 99.5)
XYZxyz(32.4910, 35.8712, 7.9012)
Luminance0.3587 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5A22F #2F42B5
analogous
#B55F2F #B5A22F #85B52F
triadic
#B5A22F #2FB5A2 #A22FB5
tetradic
#B5A22F #2FB55F #2F42B5 #B52F85
square
#B5A22F #2FB55F #2F42B5 #B52F85
split-complementary
#B5A22F #2F85B5 #5F2FB5
monochromatic
#544B16 #847722 #B5A22F #D1BF50 #DED180

Accessibility & contrast

On white

2.57
#B5A22F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.17
#B5A22F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5A22F
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5A22F#FFFFFF#000000##000000
##B5A22F1.002.578.178.17
#FFFFFF2.571.0021.0021.00
#0000008.1721.001.001.00
##0000008.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29E1B
Deuteranopia (green-blind)
#B7A537
Tritanopia (blue-blind)
#C3968C
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b5a22f;
/* rgb */ color: rgb(181, 162, 47);
/* oklch */ color: oklch(70.9% 0.131 99.5);
Tailwind
colors: {
  custom: {
    50: '#cfbd70',
    500: '#b5a22f',
    950: '#000000',
  },
}
SCSS
$custom: #b5a22f;
$custom-light: #cfbd70;
$custom-dark: #000000;
JSON
{
  "hex": "#b5a22f",
  "rgb": {
    "r": 181,
    "g": 162,
    "b": 47
  },
  "hsl": {
    "h": 51.493,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.70862,
    "c": 0.13121,
    "h": 99.5
  },
  "luminance": 0.3587
}

Semantic roles & 50–950 ramp

primary
#B5A22F
secondary
#7984C7
accent
#5CE246
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B5A22F

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

Preview Lab → · Contrast checker → · Palette generator →

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