#B5A22C#B5A22C

#B5A22C is a light, vivid yellow. Relative luminance 0.358; OKLCH L 70.8% C 0.133 H 99.7°. Best body text is #000000 at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#B5A22C
RGBrgb(181, 162, 44)
HSLhsl(52, 61%, 44%)
HSVhsv(52, 76%, 71%)
CMYKcmyk(0%, 10.5%, 75.7%, 29%)
CIE-LABlab(66.40, -5.79, 59.75)
CIE-LCHlch(66.40, 60.03, 95.54°)
OKLaboklab(70.84% -0.0224 0.1311)
OKLCHoklch(70.84% 0.133 99.7)
XYZxyz(32.4326, 35.8478, 7.5934)
Luminance0.3585 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5A22C #2C3FB5
analogous
#B55E2C #B5A22C #84B52C
triadic
#B5A22C #2CB5A2 #A22CB5
tetradic
#B5A22C #2CB55E #2C3FB5 #B52C84
square
#B5A22C #2CB55E #2C3FB5 #B52C84
split-complementary
#B5A22C #2C84B5 #5E2CB5
monochromatic
#534A14 #847620 #B5A22C #D3C04B #DFD17C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B5A22C#FFFFFF#000000##000000
##B5A22C1.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)
#B29D15
Deuteranopia (green-blind)
#B7A434
Tritanopia (blue-blind)
#C3968B
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b5a22c;
/* rgb */ color: rgb(181, 162, 44);
/* oklch */ color: oklch(70.8% 0.133 99.7);
Tailwind
colors: {
  custom: {
    50: '#cfbd6e',
    500: '#b5a22c',
    950: '#000000',
  },
}
SCSS
$custom: #b5a22c;
$custom-light: #cfbd6e;
$custom-dark: #000000;
JSON
{
  "hex": "#b5a22c",
  "rgb": {
    "r": 181,
    "g": 162,
    "b": 44
  },
  "hsl": {
    "h": 51.679,
    "s": 60.889,
    "l": 44.118
  },
  "oklch": {
    "l": 0.70842,
    "c": 0.13298,
    "h": 99.7
  },
  "luminance": 0.35846
}

Semantic roles & 50–950 ramp

primary
#B5A22C
secondary
#7581C8
accent
#5AE444
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141208
muted
#83817B

Preview Lab

Preview with #B5A22C

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

Preview Lab → · Contrast checker → · Palette generator →

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