#8A9A2A#8A9A2A

#8A9A2A is a light, vivid yellow. Relative luminance 0.287; OKLCH L 65.2% C 0.134 H 117.4°. Best body text is #000000 at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#8A9A2A
RGBrgb(138, 154, 42)
HSLhsl(69, 57%, 38%)
HSVhsv(69, 73%, 60%)
CMYKcmyk(10.4%, 0%, 72.7%, 39.6%)
CIE-LABlab(60.50, -20.64, 53.56)
CIE-LCHlch(60.50, 57.40, 111.08°)
OKLaboklab(65.24% -0.0618 0.1192)
OKLCHoklch(65.24% 0.134 117.4)
XYZxyz(22.4553, 28.6819, 6.5433)
Luminance0.2868 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9A2A #3A2A9A
analogous
#9A722A #8A9A2A #529A2A
triadic
#8A9A2A #2A8A9A #9A2A8A
tetradic
#8A9A2A #2A9A72 #3A2A9A #9A2A52
square
#8A9A2A #2A9A72 #3A2A9A #9A2A52
split-complementary
#8A9A2A #2A529A #722A9A
monochromatic
#343A10 #5F6A1D #8A9A2A #B4C938 #C6D668

Accessibility & contrast

On white

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

On black

6.74
#8A9A2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A9A2A
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A9A2A#FFFFFF#000000##000000
##8A9A2A1.003.126.746.74
#FFFFFF3.121.0021.0021.00
#0000006.7421.001.001.00
##0000006.7421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a9a2a;
/* rgb */ color: rgb(138, 154, 42);
/* oklch */ color: oklch(65.2% 0.134 117.4);
Tailwind
colors: {
  custom: {
    50: '#afb76c',
    500: '#8a9a2a',
    950: '#000000',
  },
}
SCSS
$custom: #8a9a2a;
$custom-light: #afb76c;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9a2a",
  "rgb": {
    "r": 138,
    "g": 154,
    "b": 42
  },
  "hsl": {
    "h": 68.571,
    "s": 57.143,
    "l": 38.431
  },
  "oklch": {
    "l": 0.65241,
    "c": 0.13421,
    "h": 117.4
  },
  "luminance": 0.28682
}

Semantic roles & 50–950 ramp

primary
#8A9A2A
secondary
#7063BC
accent
#47E05D
background
#FBFBF6
surface
#F6F6EC
border
#D0D0C7
text
#111107
muted
#80807A

Preview Lab

Preview with #8A9A2A

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

Preview Lab → · Contrast checker → · Palette generator →

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