#8A9C2F#8A9C2F

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

Color values

HEX#8A9C2F
RGBrgb(138, 156, 47)
HSLhsl(70, 54%, 40%)
HSVhsv(70, 70%, 61%)
CMYKcmyk(11.5%, 0%, 69.9%, 38.8%)
CIE-LABlab(61.12, -21.37, 52.26)
CIE-LCHlch(61.12, 56.46, 112.24°)
OKLaboklab(65.75% -0.0633 0.1173)
OKLCHoklch(65.75% 0.133 118.4)
XYZxyz(22.8833, 29.3856, 7.1553)
Luminance0.2939 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9C2F #412F9C
analogous
#9C772F #8A9C2F #549C2F
triadic
#8A9C2F #2F8A9C #9C2F8A
tetradic
#8A9C2F #2F9C77 #412F9C #9C2F54
square
#8A9C2F #2F9C77 #412F9C #9C2F54
split-complementary
#8A9C2F #2F549C #772F9C
monochromatic
#373E13 #606D21 #8A9C2F #B0C642 #C4D471

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A9C2F#FFFFFF#000000##000000
##8A9C2F1.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)
#A6931E
Deuteranopia (green-blind)
#A49437
Tritanopia (blue-blind)
#929386
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #8a9c2f;
/* rgb */ color: rgb(138, 156, 47);
/* oklch */ color: oklch(65.8% 0.133 118.4);
Tailwind
colors: {
  custom: {
    50: '#afb96e',
    500: '#8a9c2f',
    950: '#000000',
  },
}
SCSS
$custom: #8a9c2f;
$custom-light: #afb96e;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9c2f",
  "rgb": {
    "r": 138,
    "g": 156,
    "b": 47
  },
  "hsl": {
    "h": 69.908,
    "s": 53.695,
    "l": 39.804
  },
  "oklch": {
    "l": 0.65751,
    "c": 0.13325,
    "h": 118.4
  },
  "luminance": 0.29385
}

Semantic roles & 50–950 ramp

primary
#8A9C2F
secondary
#786BBC
accent
#4BDD63
background
#FBFBF6
surface
#F6F6EC
border
#D0D0C7
text
#111108
muted
#80807B

Preview Lab

Preview with #8A9C2F

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

Preview Lab → · Contrast checker → · Palette generator →

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