#8A8D2D#8A8D2D

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

Color values

HEX#8A8D2D
RGBrgb(138, 141, 45)
HSLhsl(62, 52%, 36%)
HSVhsv(62, 68%, 55%)
CMYKcmyk(2.1%, 0%, 68.1%, 44.7%)
CIE-LABlab(56.73, -13.72, 48.61)
CIE-LCHlch(56.73, 50.51, 105.76°)
OKLaboklab(62.22% -0.0422 0.1093)
OKLCHoklch(62.22% 0.117 111.1)
XYZxyz(20.4804, 24.6430, 6.1598)
Luminance0.2464 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8D2D #302D8D
analogous
#8D602D #8A8D2D #5A8D2D
triadic
#8A8D2D #2D8A8D #8D2D8A
tetradic
#8A8D2D #2D8D60 #302D8D #8D2D5A
square
#8A8D2D #2D8D60 #302D8D #8D2D5A
split-complementary
#8A8D2D #2D5A8D #602D8D
monochromatic
#2F300F #5D5F1E #8A8D2D #B7BB3C #CBCE66

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A8D2D#FFFFFF#000000##000000
##8A8D2D1.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)
#98871F
Deuteranopia (green-blind)
#998934
Tritanopia (blue-blind)
#94847A
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #8a8d2d;
/* rgb */ color: rgb(138, 141, 45);
/* oklch */ color: oklch(62.2% 0.117 111.1);
Tailwind
colors: {
  custom: {
    50: '#afae6c',
    500: '#8a8d2d',
    950: '#000000',
  },
}
SCSS
$custom: #8a8d2d;
$custom-light: #afae6c;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8d2d",
  "rgb": {
    "r": 138,
    "g": 141,
    "b": 45
  },
  "hsl": {
    "h": 61.875,
    "s": 51.613,
    "l": 36.471
  },
  "oklch": {
    "l": 0.62223,
    "c": 0.11711,
    "h": 111.1
  },
  "luminance": 0.24642
}

Semantic roles & 50–950 ramp

primary
#8A8D2D
secondary
#6461B5
accent
#4DDB51
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#111007
muted
#807F7A

Preview Lab

Preview with #8A8D2D

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

Preview Lab → · Contrast checker → · Palette generator →

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