#8A9221#8A9221

#8A9221 is a light, vivid yellow. Relative luminance 0.261; OKLCH L 63.3% C 0.130 H 113.7°. Best body text is #000000 at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#8A9221
RGBrgb(138, 146, 33)
HSLhsl(64, 63%, 35%)
HSVhsv(64, 77%, 57%)
CMYKcmyk(5.5%, 0%, 77.4%, 42.7%)
CIE-LABlab(58.10, -16.98, 54.46)
CIE-LCHlch(58.10, 57.04, 107.31°)
OKLaboklab(63.3% -0.0524 0.1194)
OKLCHoklch(63.3% 0.13 113.7)
XYZxyz(21.0353, 26.0713, 5.3627)
Luminance0.2607 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9221 #292192
analogous
#926221 #8A9221 #519221
triadic
#8A9221 #218A92 #92218A
tetradic
#8A9221 #219262 #292192 #922151
square
#8A9221 #219262 #292192 #922151
split-complementary
#8A9221 #215192 #622192
monochromatic
#2C2E0A #5B6016 #8A9221 #B9C42C #CFD955

Accessibility & contrast

On white

3.38
#8A9221 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.21
#8A9221 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A9221
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A9221#FFFFFF#000000##000000
##8A92211.003.386.216.21
#FFFFFF3.381.0021.0021.00
#0000006.2121.001.001.00
##0000006.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#9D8B04
Deuteranopia (green-blind)
#9D8D2B
Tritanopia (blue-blind)
#94897D
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #8a9221;
/* rgb */ color: rgb(138, 146, 33);
/* oklch */ color: oklch(63.3% 0.130 113.7);
Tailwind
colors: {
  custom: {
    50: '#afb166',
    500: '#8a9221',
    950: '#000000',
  },
}
SCSS
$custom: #8a9221;
$custom-light: #afb166;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9221",
  "rgb": {
    "r": 138,
    "g": 146,
    "b": 33
  },
  "hsl": {
    "h": 64.248,
    "s": 63.128,
    "l": 35.098
  },
  "oklch": {
    "l": 0.63302,
    "c": 0.13044,
    "h": 113.7
  },
  "luminance": 0.26071
}

Semantic roles & 50–950 ramp

primary
#8A9221
secondary
#5A53BC
accent
#42E64D
background
#FBFAF6
surface
#F6F5EB
border
#D0CFC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8A9221

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

Preview Lab → · Contrast checker → · Palette generator →

#8A9221 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva