#8A9821#8A9821

#8A9821 is a light, vivid yellow. Relative luminance 0.280; OKLCH L 64.7% C 0.137 H 116.4°. Best body text is #000000 at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#8A9821
RGBrgb(138, 152, 33)
HSLhsl(67, 64%, 36%)
HSVhsv(67, 78%, 60%)
CMYKcmyk(9.2%, 0%, 78.3%, 40.4%)
CIE-LABlab(59.86, -20.07, 56.07)
CIE-LCHlch(59.86, 59.55, 109.69°)
OKLaboklab(64.71% -0.061 0.1229)
OKLCHoklch(64.71% 0.137 116.4)
XYZxyz(21.9846, 27.9699, 5.6791)
Luminance0.2797 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9821 #2F2198
analogous
#986B21 #8A9821 #4F9821
triadic
#8A9821 #218A98 #98218A
tetradic
#8A9821 #21986B #2F2198 #98214F
square
#8A9821 #21986B #2F2198 #98214F
split-complementary
#8A9821 #214F98 #6B2198
monochromatic
#2F330B #5C6616 #8A9821 #B8CA2C #CCDB59

Accessibility & contrast

On white

3.18
#8A9821 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.59
#8A9821 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A9821
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A9821#FFFFFF#000000##000000
##8A98211.003.186.596.59
#FFFFFF3.181.0021.0021.00
#0000006.5921.001.001.00
##0000006.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#A39000
Deuteranopia (green-blind)
#A2912C
Tritanopia (blue-blind)
#938F82
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #8a9821;
/* rgb */ color: rgb(138, 152, 33);
/* oklch */ color: oklch(64.7% 0.137 116.4);
Tailwind
colors: {
  custom: {
    50: '#b0b667',
    500: '#8a9821',
    950: '#000000',
  },
}
SCSS
$custom: #8a9821;
$custom-light: #b0b667;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9821",
  "rgb": {
    "r": 138,
    "g": 152,
    "b": 33
  },
  "hsl": {
    "h": 67.059,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.64712,
    "c": 0.13716,
    "h": 116.4
  },
  "luminance": 0.2797
}

Semantic roles & 50–950 ramp

primary
#8A9821
secondary
#6256BF
accent
#40E754
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111106
muted
#80807A

Preview Lab

Preview with #8A9821

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

Preview Lab → · Contrast checker → · Palette generator →

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