#8A9722#8A9722

#8A9722 is a light, vivid yellow. Relative luminance 0.277; OKLCH L 64.5% C 0.135 H 116.0°. Best body text is #000000 at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#8A9722
RGBrgb(138, 151, 34)
HSLhsl(67, 63%, 36%)
HSVhsv(67, 77%, 59%)
CMYKcmyk(8.6%, 0%, 77.5%, 40.8%)
CIE-LABlab(59.57, -19.51, 55.48)
CIE-LCHlch(59.57, 58.81, 109.38°)
OKLaboklab(64.48% -0.0593 0.1218)
OKLCHoklch(64.48% 0.135 116)
XYZxyz(21.8372, 27.6523, 5.7001)
Luminance0.2765 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9722 #2F2297
analogous
#976A22 #8A9722 #509722
triadic
#8A9722 #228A97 #97228A
tetradic
#8A9722 #22976A #2F2297 #972250
square
#8A9722 #22976A #2F2297 #972250
split-complementary
#8A9722 #225097 #6A2297
monochromatic
#2F330C #5C6517 #8A9722 #B8C92D #CCDA5A

Accessibility & contrast

On white

3.22
#8A9722 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.53
#8A9722 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A9722
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A9722#FFFFFF#000000##000000
##8A97221.003.226.536.53
#FFFFFF3.221.0021.0021.00
#0000006.5321.001.001.00
##0000006.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#A28F03
Deuteranopia (green-blind)
#A1902D
Tritanopia (blue-blind)
#938E81
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #8a9722;
/* rgb */ color: rgb(138, 151, 34);
/* oklch */ color: oklch(64.5% 0.135 116.0);
Tailwind
colors: {
  custom: {
    50: '#afb567',
    500: '#8a9722',
    950: '#000000',
  },
}
SCSS
$custom: #8a9722;
$custom-light: #afb567;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9722",
  "rgb": {
    "r": 138,
    "g": 151,
    "b": 34
  },
  "hsl": {
    "h": 66.667,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.64482,
    "c": 0.13548,
    "h": 116
  },
  "luminance": 0.27652
}

Semantic roles & 50–950 ramp

primary
#8A9722
secondary
#6257BE
accent
#42E654
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111107
muted
#80807A

Preview Lab

Preview with #8A9722

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

Preview Lab → · Contrast checker → · Palette generator →

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