#8A8A2D#8A8A2D

#8A8A2D is a mid, moderate yellow. Relative luminance 0.238; OKLCH L 61.5% C 0.114 H 109.3°. Best body text is #000000 at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#8A8A2D
RGBrgb(138, 138, 45)
HSLhsl(60, 51%, 36%)
HSVhsv(60, 67%, 54%)
CMYKcmyk(0%, 0%, 67.4%, 45.9%)
CIE-LABlab(55.86, -12.12, 47.72)
CIE-LCHlch(55.86, 49.24, 104.25°)
OKLaboklab(61.53% -0.0377 0.1074)
OKLCHoklch(61.53% 0.114 109.3)
XYZxyz(20.0440, 23.7703, 6.0144)
Luminance0.2377 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8A2D #2D2D8A
analogous
#8A5B2D #8A8A2D #5B8A2D
triadic
#8A8A2D #2D8A8A #8A2D8A
tetradic
#8A8A2D #2D8A5B #2D2D8A #8A2D5B
square
#8A8A2D #2D8A5B #2D2D8A #8A2D5B
split-complementary
#8A8A2D #2D5B8A #5B2D8A
monochromatic
#2E2E0F #5C5C1E #8A8A2D #B8B83C #CDCD65

Accessibility & contrast

On white

3.65
#8A8A2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.75
#8A8A2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8A2D
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8A2D#FFFFFF#000000##000000
##8A8A2D1.003.655.755.75
#FFFFFF3.651.0021.0021.00
#0000005.7521.001.001.00
##0000005.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#958420
Deuteranopia (green-blind)
#968733
Tritanopia (blue-blind)
#948177
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8a8a2d;
/* rgb */ color: rgb(138, 138, 45);
/* oklch */ color: oklch(61.5% 0.114 109.3);
Tailwind
colors: {
  custom: {
    50: '#afab6b',
    500: '#8a8a2d',
    950: '#000000',
  },
}
SCSS
$custom: #8a8a2d;
$custom-light: #afab6b;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8a2d",
  "rgb": {
    "r": 138,
    "g": 138,
    "b": 45
  },
  "hsl": {
    "h": 60,
    "s": 50.82,
    "l": 35.882
  },
  "oklch": {
    "l": 0.61529,
    "c": 0.11379,
    "h": 109.3
  },
  "luminance": 0.2377
}

Semantic roles & 50–950 ramp

primary
#8A8A2D
secondary
#6060B3
accent
#4DDA4D
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#111007
muted
#807F7A

Preview Lab

Preview with #8A8A2D

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

Preview Lab → · Contrast checker → · Palette generator →

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