#8A9222#8A9222

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

Color values

HEX#8A9222
RGBrgb(138, 146, 34)
HSLhsl(64, 62%, 35%)
HSVhsv(64, 77%, 57%)
CMYKcmyk(5.5%, 0%, 76.7%, 42.7%)
CIE-LABlab(58.11, -16.93, 54.12)
CIE-LCHlch(58.11, 56.71, 107.37°)
OKLaboklab(63.31% -0.0522 0.1189)
OKLCHoklch(63.31% 0.13 113.7)
XYZxyz(21.0495, 26.0770, 5.4376)
Luminance0.2608 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9222 #2A2292
analogous
#926222 #8A9222 #529222
triadic
#8A9222 #228A92 #92228A
tetradic
#8A9222 #229262 #2A2292 #922252
square
#8A9222 #229262 #2A2292 #922252
split-complementary
#8A9222 #225292 #622292
monochromatic
#2C2F0B #5B6016 #8A9222 #B9C42E #CFD857

Accessibility & contrast

On white

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

On black

6.22
#8A9222 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A9222
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A9222#FFFFFF#000000##000000
##8A92221.003.386.226.22
#FFFFFF3.381.0021.0021.00
#0000006.2221.001.001.00
##0000006.2221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a9222;
/* rgb */ color: rgb(138, 146, 34);
/* oklch */ color: oklch(63.3% 0.130 113.7);
Tailwind
colors: {
  custom: {
    50: '#afb167',
    500: '#8a9222',
    950: '#000000',
  },
}
SCSS
$custom: #8a9222;
$custom-light: #afb167;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9222",
  "rgb": {
    "r": 138,
    "g": 146,
    "b": 34
  },
  "hsl": {
    "h": 64.286,
    "s": 62.222,
    "l": 35.294
  },
  "oklch": {
    "l": 0.63308,
    "c": 0.12988,
    "h": 113.7
  },
  "luminance": 0.26077
}

Semantic roles & 50–950 ramp

primary
#8A9222
secondary
#5B54BC
accent
#43E54E
background
#FBFAF6
surface
#F6F5EB
border
#D0CFC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8A9222

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

Preview Lab → · Contrast checker → · Palette generator →

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