#8A8D2A#8A8D2A

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

Color values

HEX#8A8D2A
RGBrgb(138, 141, 42)
HSLhsl(62, 54%, 36%)
HSVhsv(62, 70%, 55%)
CMYKcmyk(2.1%, 0%, 70.2%, 44.7%)
CIE-LABlab(56.70, -13.89, 49.81)
CIE-LCHlch(56.70, 51.71, 105.58°)
OKLaboklab(62.2% -0.043 0.1113)
OKLCHoklch(62.2% 0.119 111.1)
XYZxyz(20.4247, 24.6207, 5.8664)
Luminance0.2462 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8D2A #2D2A8D
analogous
#8D5E2A #8A8D2A #588D2A
triadic
#8A8D2A #2A8A8D #8D2A8A
tetradic
#8A8D2A #2A8D5E #2D2A8D #8D2A58
square
#8A8D2A #2A8D5E #2D2A8D #8D2A58
split-complementary
#8A8D2A #2A588D #5E2A8D
monochromatic
#2E2F0E #5C5E1C #8A8D2A #B8BC38 #CDD061

Accessibility & contrast

On white

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

On black

5.92
#8A8D2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8D2A
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8D2A#FFFFFF#000000##000000
##8A8D2A1.003.545.925.92
#FFFFFF3.541.0021.0021.00
#0000005.9221.001.001.00
##0000005.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#98871A
Deuteranopia (green-blind)
#998931
Tritanopia (blue-blind)
#948479
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #8a8d2a;
/* rgb */ color: rgb(138, 141, 42);
/* oklch */ color: oklch(62.2% 0.119 111.1);
Tailwind
colors: {
  custom: {
    50: '#afae6a',
    500: '#8a8d2a',
    950: '#000000',
  },
}
SCSS
$custom: #8a8d2a;
$custom-light: #afae6a;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8d2a",
  "rgb": {
    "r": 138,
    "g": 141,
    "b": 42
  },
  "hsl": {
    "h": 61.818,
    "s": 54.098,
    "l": 35.882
  },
  "oklch": {
    "l": 0.62198,
    "c": 0.11928,
    "h": 111.1
  },
  "luminance": 0.2462
}

Semantic roles & 50–950 ramp

primary
#8A8D2A
secondary
#605DB6
accent
#4ADD4F
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111007
muted
#807F7A

Preview Lab

Preview with #8A8D2A

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

Preview Lab → · Contrast checker → · Palette generator →

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