#8A9421#8A9421

#8A9421 is a light, vivid yellow. Relative luminance 0.267; OKLCH L 63.8% C 0.133 H 114.6°. Best body text is #000000 at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#8A9421
RGBrgb(138, 148, 33)
HSLhsl(65, 64%, 35%)
HSVhsv(65, 78%, 58%)
CMYKcmyk(6.8%, 0%, 77.7%, 42%)
CIE-LABlab(58.69, -18.01, 54.99)
CIE-LCHlch(58.69, 57.87, 108.14°)
OKLaboklab(63.77% -0.0553 0.1206)
OKLCHoklch(63.77% 0.133 114.6)
XYZxyz(21.3463, 26.6933, 5.4664)
Luminance0.2669 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9421 #2B2194
analogous
#946421 #8A9421 #519421
triadic
#8A9421 #218A94 #94218A
tetradic
#8A9421 #219464 #2B2194 #942151
square
#8A9421 #219464 #2B2194 #942151
split-complementary
#8A9421 #215194 #642194
monochromatic
#2D300B #5B6216 #8A9421 #B9C62C #CED956

Accessibility & contrast

On white

3.31
#8A9421 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.34
#8A9421 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A9421
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A9421#FFFFFF#000000##000000
##8A94211.003.316.346.34
#FFFFFF3.311.0021.0021.00
#0000006.3421.001.001.00
##0000006.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#9F8C03
Deuteranopia (green-blind)
#9F8E2B
Tritanopia (blue-blind)
#938B7F
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #8a9421;
/* rgb */ color: rgb(138, 148, 33);
/* oklch */ color: oklch(63.8% 0.133 114.6);
Tailwind
colors: {
  custom: {
    50: '#afb366',
    500: '#8a9421',
    950: '#000000',
  },
}
SCSS
$custom: #8a9421;
$custom-light: #afb366;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9421",
  "rgb": {
    "r": 138,
    "g": 148,
    "b": 33
  },
  "hsl": {
    "h": 65.217,
    "s": 63.536,
    "l": 35.49
  },
  "oklch": {
    "l": 0.63771,
    "c": 0.13265,
    "h": 114.6
  },
  "luminance": 0.26693
}

Semantic roles & 50–950 ramp

primary
#8A9421
secondary
#5D54BD
accent
#41E750
background
#FBFAF6
surface
#F6F5EB
border
#D0CFC6
text
#111106
muted
#80807A

Preview Lab

Preview with #8A9421

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

Preview Lab → · Contrast checker → · Palette generator →

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