#8A9822#8A9822

#8A9822 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.60:1 contrast (WCAG AA passes).

Color values

HEX#8A9822
RGBrgb(138, 152, 34)
HSLhsl(67, 63%, 36%)
HSVhsv(67, 78%, 60%)
CMYKcmyk(9.2%, 0%, 77.6%, 40.4%)
CIE-LABlab(59.87, -20.02, 55.75)
CIE-LCHlch(59.87, 59.24, 109.75°)
OKLaboklab(64.72% -0.0608 0.1224)
OKLCHoklch(64.72% 0.137 116.4)
XYZxyz(21.9988, 27.9756, 5.7540)
Luminance0.2797 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9822 #302298
analogous
#986B22 #8A9822 #4F9822
triadic
#8A9822 #228A98 #98228A
tetradic
#8A9822 #22986B #302298 #98224F
square
#8A9822 #22986B #302298 #98224F
split-complementary
#8A9822 #224F98 #6B2298
monochromatic
#2F340C #5D6617 #8A9822 #B7CA2D #CBDA5A

Accessibility & contrast

On white

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

On black

6.60
#8A9822 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A9822
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A9822#FFFFFF#000000##000000
##8A98221.003.186.606.60
#FFFFFF3.181.0021.0021.00
#0000006.6021.001.001.00
##0000006.6021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a9822;
/* rgb */ color: rgb(138, 152, 34);
/* oklch */ color: oklch(64.7% 0.137 116.4);
Tailwind
colors: {
  custom: {
    50: '#b0b667',
    500: '#8a9822',
    950: '#000000',
  },
}
SCSS
$custom: #8a9822;
$custom-light: #b0b667;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9822",
  "rgb": {
    "r": 138,
    "g": 152,
    "b": 34
  },
  "hsl": {
    "h": 67.119,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.64718,
    "c": 0.13662,
    "h": 116.4
  },
  "luminance": 0.27975
}

Semantic roles & 50–950 ramp

primary
#8A9822
secondary
#6457BE
accent
#41E655
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111107
muted
#80807A

Preview Lab

Preview with #8A9822

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

Preview Lab → · Contrast checker → · Palette generator →

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