#8A8D2F#8A8D2F

#8A8D2F is a light, moderate yellow. Relative luminance 0.247; OKLCH L 62.2% C 0.116 H 111.1°. Best body text is #000000 at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#8A8D2F
RGBrgb(138, 141, 47)
HSLhsl(62, 50%, 37%)
HSVhsv(62, 67%, 55%)
CMYKcmyk(2.1%, 0%, 66.7%, 44.7%)
CIE-LABlab(56.74, -13.59, 47.79)
CIE-LCHlch(56.74, 49.68, 105.88°)
OKLaboklab(62.24% -0.0416 0.1079)
OKLCHoklch(62.24% 0.116 111.1)
XYZxyz(20.5198, 24.6588, 6.3675)
Luminance0.2466 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8D2F #322F8D
analogous
#8D612F #8A8D2F #5B8D2F
triadic
#8A8D2F #2F8A8D #8D2F8A
tetradic
#8A8D2F #2F8D61 #322F8D #8D2F5B
square
#8A8D2F #2F8D61 #322F8D #8D2F5B
split-complementary
#8A8D2F #2F5B8D #612F8D
monochromatic
#303110 #5D5F20 #8A8D2F #B7BB3E #CACD69

Accessibility & contrast

On white

3.54
#8A8D2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.93
#8A8D2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8D2F
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8D2F#FFFFFF#000000##000000
##8A8D2F1.003.545.935.93
#FFFFFF3.541.0021.0021.00
#0000005.9321.001.001.00
##0000005.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#988722
Deuteranopia (green-blind)
#988935
Tritanopia (blue-blind)
#93847A
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #8a8d2f;
/* rgb */ color: rgb(138, 141, 47);
/* oklch */ color: oklch(62.2% 0.116 111.1);
Tailwind
colors: {
  custom: {
    50: '#afae6d',
    500: '#8a8d2f',
    950: '#000000',
  },
}
SCSS
$custom: #8a8d2f;
$custom-light: #afae6d;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8d2f",
  "rgb": {
    "r": 138,
    "g": 141,
    "b": 47
  },
  "hsl": {
    "h": 61.915,
    "s": 50,
    "l": 36.863
  },
  "oklch": {
    "l": 0.6224,
    "c": 0.11559,
    "h": 111.1
  },
  "luminance": 0.24658
}

Semantic roles & 50–950 ramp

primary
#8A8D2F
secondary
#6664B4
accent
#4EDA53
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#111007
muted
#807F7A

Preview Lab

Preview with #8A8D2F

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

Preview Lab → · Contrast checker → · Palette generator →

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