#B5A22E#B5A22E

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

Color values

HEX#B5A22E
RGBrgb(181, 162, 46)
HSLhsl(52, 59%, 45%)
HSVhsv(52, 75%, 71%)
CMYKcmyk(0%, 10.5%, 74.6%, 29%)
CIE-LABlab(66.42, -5.70, 59.05)
CIE-LCHlch(66.42, 59.32, 95.52°)
OKLaboklab(70.86% -0.022 0.13)
OKLCHoklch(70.86% 0.132 99.6)
XYZxyz(32.4711, 35.8632, 7.7962)
Luminance0.3586 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5A22E #2E41B5
analogous
#B55F2E #B5A22E #84B52E
triadic
#B5A22E #2EB5A2 #A22EB5
tetradic
#B5A22E #2EB55F #2E41B5 #B52E84
square
#B5A22E #2EB55F #2E41B5 #B52E84
split-complementary
#B5A22E #2E84B5 #5F2EB5
monochromatic
#534B15 #847622 #B5A22E #D2BF4E #DED17F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B5A22E#FFFFFF#000000##000000
##B5A22E1.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)
#B29E19
Deuteranopia (green-blind)
#B7A436
Tritanopia (blue-blind)
#C3968C
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b5a22e;
/* rgb */ color: rgb(181, 162, 46);
/* oklch */ color: oklch(70.9% 0.132 99.6);
Tailwind
colors: {
  custom: {
    50: '#cfbd6f',
    500: '#b5a22e',
    950: '#000000',
  },
}
SCSS
$custom: #b5a22e;
$custom-light: #cfbd6f;
$custom-dark: #000000;
JSON
{
  "hex": "#b5a22e",
  "rgb": {
    "r": 181,
    "g": 162,
    "b": 46
  },
  "hsl": {
    "h": 51.556,
    "s": 59.471,
    "l": 44.51
  },
  "oklch": {
    "l": 0.70855,
    "c": 0.13181,
    "h": 99.6
  },
  "luminance": 0.35862
}

Semantic roles & 50–950 ramp

primary
#B5A22E
secondary
#7883C7
accent
#5BE345
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B5A22E

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

Preview Lab → · Contrast checker → · Palette generator →

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