#8A9C2E#8A9C2E

#8A9C2E is a light, vivid yellow. Relative luminance 0.294; OKLCH L 65.7% C 0.134 H 118.3°. Best body text is #000000 at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#8A9C2E
RGBrgb(138, 156, 46)
HSLhsl(70, 54%, 40%)
HSVhsv(70, 71%, 61%)
CMYKcmyk(11.5%, 0%, 70.5%, 38.8%)
CIE-LABlab(61.11, -21.43, 52.64)
CIE-LCHlch(61.11, 56.84, 112.15°)
OKLaboklab(65.74% -0.0636 0.1179)
OKLCHoklch(65.74% 0.134 118.3)
XYZxyz(22.8633, 29.3777, 7.0502)
Luminance0.2938 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9C2E #402E9C
analogous
#9C772E #8A9C2E #539C2E
triadic
#8A9C2E #2E8A9C #9C2E8A
tetradic
#8A9C2E #2E9C77 #402E9C #9C2E53
square
#8A9C2E #2E9C77 #402E9C #9C2E53
split-complementary
#8A9C2E #2E539C #772E9C
monochromatic
#363D12 #606D20 #8A9C2E #B1C740 #C4D570

Accessibility & contrast

On white

3.05
#8A9C2E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.88
#8A9C2E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A9C2E
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A9C2E#FFFFFF#000000##000000
##8A9C2E1.003.056.886.88
#FFFFFF3.051.0021.0021.00
#0000006.8821.001.001.00
##0000006.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#A6931C
Deuteranopia (green-blind)
#A49437
Tritanopia (blue-blind)
#929386
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #8a9c2e;
/* rgb */ color: rgb(138, 156, 46);
/* oklch */ color: oklch(65.7% 0.134 118.3);
Tailwind
colors: {
  custom: {
    50: '#afb96e',
    500: '#8a9c2e',
    950: '#000000',
  },
}
SCSS
$custom: #8a9c2e;
$custom-light: #afb96e;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9c2e",
  "rgb": {
    "r": 138,
    "g": 156,
    "b": 46
  },
  "hsl": {
    "h": 69.818,
    "s": 54.455,
    "l": 39.608
  },
  "oklch": {
    "l": 0.65743,
    "c": 0.13394,
    "h": 118.3
  },
  "luminance": 0.29377
}

Semantic roles & 50–950 ramp

primary
#8A9C2E
secondary
#776ABC
accent
#4ADE62
background
#FBFBF6
surface
#F6F6EC
border
#D0D0C7
text
#111107
muted
#80807A

Preview Lab

Preview with #8A9C2E

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

Preview Lab → · Contrast checker → · Palette generator →

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