#8A8C2E#8A8C2E

#8A8C2E is a light, moderate yellow. Relative luminance 0.244; OKLCH L 62.0% C 0.115 H 110.5°. Best body text is #000000 at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#8A8C2E
RGBrgb(138, 140, 46)
HSLhsl(61, 51%, 36%)
HSVhsv(61, 67%, 55%)
CMYKcmyk(1.4%, 0%, 67.1%, 45.1%)
CIE-LABlab(56.44, -13.12, 47.90)
CIE-LCHlch(56.44, 49.67, 105.32°)
OKLaboklab(62% -0.0404 0.1079)
OKLCHoklch(62% 0.115 110.5)
XYZxyz(20.3531, 24.3572, 6.2135)
Luminance0.2436 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8C2E #302E8C
analogous
#8C5F2E #8A8C2E #5B8C2E
triadic
#8A8C2E #2E8A8C #8C2E8A
tetradic
#8A8C2E #2E8C5F #302E8C #8C2E5B
square
#8A8C2E #2E8C5F #302E8C #8C2E5B
split-complementary
#8A8C2E #2E5B8C #5F2E8C
monochromatic
#2F3010 #5D5E1F #8A8C2E #B7BA3D #CBCD67

Accessibility & contrast

On white

3.58
#8A8C2E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.87
#8A8C2E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8C2E
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8C2E#FFFFFF#000000##000000
##8A8C2E1.003.585.875.87
#FFFFFF3.581.0021.0021.00
#0000005.8721.001.001.00
##0000005.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#978621
Deuteranopia (green-blind)
#988934
Tritanopia (blue-blind)
#948379
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8a8c2e;
/* rgb */ color: rgb(138, 140, 46);
/* oklch */ color: oklch(62.0% 0.115 110.5);
Tailwind
colors: {
  custom: {
    50: '#afad6c',
    500: '#8a8c2e',
    950: '#000000',
  },
}
SCSS
$custom: #8a8c2e;
$custom-light: #afad6c;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8c2e",
  "rgb": {
    "r": 138,
    "g": 140,
    "b": 46
  },
  "hsl": {
    "h": 61.277,
    "s": 50.538,
    "l": 36.471
  },
  "oklch": {
    "l": 0.62,
    "c": 0.11524,
    "h": 110.5
  },
  "luminance": 0.24357
}

Semantic roles & 50–950 ramp

primary
#8A8C2E
secondary
#6462B4
accent
#4EDA51
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#111007
muted
#807F7A

Preview Lab

Preview with #8A8C2E

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

Preview Lab → · Contrast checker → · Palette generator →

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