#8A9A22#8A9A22

#8A9A22 is a light, vivid yellow. Relative luminance 0.286; OKLCH L 65.2% C 0.139 H 117.2°. Best body text is #000000 at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#8A9A22
RGBrgb(138, 154, 34)
HSLhsl(68, 64%, 37%)
HSVhsv(68, 78%, 60%)
CMYKcmyk(10.4%, 0%, 77.9%, 39.6%)
CIE-LABlab(60.45, -21.04, 56.29)
CIE-LCHlch(60.45, 60.10, 110.49°)
OKLaboklab(65.19% -0.0636 0.1235)
OKLCHoklch(65.19% 0.139 117.2)
XYZxyz(22.3261, 28.6302, 5.8631)
Luminance0.2863 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9A22 #32229A
analogous
#9A6E22 #8A9A22 #4E9A22
triadic
#8A9A22 #228A9A #9A228A
tetradic
#8A9A22 #229A6E #32229A #9A224E
square
#8A9A22 #229A6E #32229A #9A224E
split-complementary
#8A9A22 #224E9A #6E229A
monochromatic
#30360C #5D6817 #8A9A22 #B7CC2D #CADB5B

Accessibility & contrast

On white

3.12
#8A9A22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.73
#8A9A22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A9A22
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A9A22#FFFFFF#000000##000000
##8A9A221.003.126.736.73
#FFFFFF3.121.0021.0021.00
#0000006.7321.001.001.00
##0000006.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#A59101
Deuteranopia (green-blind)
#A3922D
Tritanopia (blue-blind)
#939184
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #8a9a22;
/* rgb */ color: rgb(138, 154, 34);
/* oklch */ color: oklch(65.2% 0.139 117.2);
Tailwind
colors: {
  custom: {
    50: '#b0b768',
    500: '#8a9a22',
    950: '#000000',
  },
}
SCSS
$custom: #8a9a22;
$custom-light: #b0b768;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9a22",
  "rgb": {
    "r": 138,
    "g": 154,
    "b": 34
  },
  "hsl": {
    "h": 68,
    "s": 63.83,
    "l": 36.863
  },
  "oklch": {
    "l": 0.6519,
    "c": 0.13891,
    "h": 117.2
  },
  "luminance": 0.2863
}

Semantic roles & 50–950 ramp

primary
#8A9A22
secondary
#6658BF
accent
#41E757
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111107
muted
#80807A

Preview Lab

Preview with #8A9A22

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

Preview Lab → · Contrast checker → · Palette generator →

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