#8A8D2E#8A8D2E

#8A8D2E is a light, moderate yellow. Relative luminance 0.246; 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#8A8D2E
RGBrgb(138, 141, 46)
HSLhsl(62, 51%, 37%)
HSVhsv(62, 67%, 55%)
CMYKcmyk(2.1%, 0%, 67.4%, 44.7%)
CIE-LABlab(56.73, -13.65, 48.20)
CIE-LCHlch(56.73, 50.10, 105.82°)
OKLaboklab(62.23% -0.0419 0.1086)
OKLCHoklch(62.23% 0.116 111.1)
XYZxyz(20.4999, 24.6508, 6.2624)
Luminance0.2465 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8D2E #312E8D
analogous
#8D612E #8A8D2E #5B8D2E
triadic
#8A8D2E #2E8A8D #8D2E8A
tetradic
#8A8D2E #2E8D61 #312E8D #8D2E5B
square
#8A8D2E #2E8D61 #312E8D #8D2E5B
split-complementary
#8A8D2E #2E5B8D #612E8D
monochromatic
#303110 #5D5F1F #8A8D2E #B7BB3D #CACE68

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A8D2E#FFFFFF#000000##000000
##8A8D2E1.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)
#988721
Deuteranopia (green-blind)
#998934
Tritanopia (blue-blind)
#93847A
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #8a8d2e;
/* rgb */ color: rgb(138, 141, 46);
/* oklch */ color: oklch(62.2% 0.116 111.1);
Tailwind
colors: {
  custom: {
    50: '#afae6c',
    500: '#8a8d2e',
    950: '#000000',
  },
}
SCSS
$custom: #8a8d2e;
$custom-light: #afae6c;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8d2e",
  "rgb": {
    "r": 138,
    "g": 141,
    "b": 46
  },
  "hsl": {
    "h": 61.895,
    "s": 50.802,
    "l": 36.667
  },
  "oklch": {
    "l": 0.62231,
    "c": 0.11635,
    "h": 111.1
  },
  "luminance": 0.2465
}

Semantic roles & 50–950 ramp

primary
#8A8D2E
secondary
#6562B5
accent
#4EDA52
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#111007
muted
#807F7A

Preview Lab

Preview with #8A8D2E

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

Preview Lab → · Contrast checker → · Palette generator →

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