#8A9A28#8A9A28

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

Color values

HEX#8A9A28
RGBrgb(138, 154, 40)
HSLhsl(68, 59%, 38%)
HSVhsv(68, 74%, 60%)
CMYKcmyk(10.4%, 0%, 74%, 39.6%)
CIE-LABlab(60.49, -20.75, 54.28)
CIE-LCHlch(60.49, 58.11, 110.92°)
OKLaboklab(65.23% -0.0622 0.1203)
OKLCHoklch(65.23% 0.135 117.4)
XYZxyz(22.4204, 28.6679, 6.3594)
Luminance0.2867 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9A28 #38289A
analogous
#9A7128 #8A9A28 #519A28
triadic
#8A9A28 #288A9A #9A288A
tetradic
#8A9A28 #289A71 #38289A #9A2851
square
#8A9A28 #289A71 #38289A #9A2851
split-complementary
#8A9A28 #28519A #71289A
monochromatic
#33390F #5E691B #8A9A28 #B5CA35 #C7D765

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A9A28#FFFFFF#000000##000000
##8A9A281.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)
#A59111
Deuteranopia (green-blind)
#A39232
Tritanopia (blue-blind)
#939184
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #8a9a28;
/* rgb */ color: rgb(138, 154, 40);
/* oklch */ color: oklch(65.2% 0.135 117.4);
Tailwind
colors: {
  custom: {
    50: '#afb76b',
    500: '#8a9a28',
    950: '#000000',
  },
}
SCSS
$custom: #8a9a28;
$custom-light: #afb76b;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9a28",
  "rgb": {
    "r": 138,
    "g": 154,
    "b": 40
  },
  "hsl": {
    "h": 68.421,
    "s": 58.763,
    "l": 38.039
  },
  "oklch": {
    "l": 0.65227,
    "c": 0.13547,
    "h": 117.4
  },
  "luminance": 0.28668
}

Semantic roles & 50–950 ramp

primary
#8A9A28
secondary
#6E61BD
accent
#46E25C
background
#FBFBF6
surface
#F6F6EC
border
#D0D0C7
text
#111107
muted
#80807A

Preview Lab

Preview with #8A9A28

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

Preview Lab → · Contrast checker → · Palette generator →

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