#8A8C2D#8A8C2D

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

Color values

HEX#8A8C2D
RGBrgb(138, 140, 45)
HSLhsl(61, 51%, 36%)
HSVhsv(61, 68%, 55%)
CMYKcmyk(1.4%, 0%, 67.9%, 45.1%)
CIE-LABlab(56.44, -13.18, 48.32)
CIE-LCHlch(56.44, 50.08, 105.26°)
OKLaboklab(61.99% -0.0407 0.1086)
OKLCHoklch(61.99% 0.116 110.5)
XYZxyz(20.3336, 24.3494, 6.1109)
Luminance0.2435 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8C2D #2F2D8C
analogous
#8C5F2D #8A8C2D #5B8C2D
triadic
#8A8C2D #2D8A8C #8C2D8A
tetradic
#8A8C2D #2D8C5F #2F2D8C #8C2D5B
square
#8A8C2D #2D8C5F #2F2D8C #8C2D5B
split-complementary
#8A8C2D #2D5B8C #5F2D8C
monochromatic
#2F2F0F #5C5E1E #8A8C2D #B8BA3C #CCCE66

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A8C2D#FFFFFF#000000##000000
##8A8C2D1.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)
#97861F
Deuteranopia (green-blind)
#988933
Tritanopia (blue-blind)
#948379
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8a8c2d;
/* rgb */ color: rgb(138, 140, 45);
/* oklch */ color: oklch(62.0% 0.116 110.5);
Tailwind
colors: {
  custom: {
    50: '#afad6c',
    500: '#8a8c2d',
    950: '#000000',
  },
}
SCSS
$custom: #8a8c2d;
$custom-light: #afad6c;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8c2d",
  "rgb": {
    "r": 138,
    "g": 140,
    "b": 45
  },
  "hsl": {
    "h": 61.263,
    "s": 51.351,
    "l": 36.275
  },
  "oklch": {
    "l": 0.61991,
    "c": 0.11599,
    "h": 110.5
  },
  "luminance": 0.24349
}

Semantic roles & 50–950 ramp

primary
#8A8C2D
secondary
#6260B4
accent
#4DDB50
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#111007
muted
#807F7A

Preview Lab

Preview with #8A8C2D

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

Preview Lab → · Contrast checker → · Palette generator →

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