#8A8840#8A8840

#8A8840 is a mid, moderate yellow. Relative luminance 0.234; OKLCH L 61.3% C 0.095 H 107.4°. Best body text is #000000 at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#8A8840
RGBrgb(138, 136, 64)
HSLhsl(58, 37%, 40%)
HSVhsv(58, 54%, 54%)
CMYKcmyk(0%, 1.4%, 53.6%, 45.9%)
CIE-LABlab(55.46, -9.60, 38.42)
CIE-LCHlch(55.46, 39.60, 104.02°)
OKLaboklab(61.27% -0.0283 0.0902)
OKLCHoklch(61.27% 0.095 107.4)
XYZxyz(20.2113, 23.3823, 8.2981)
Luminance0.2338 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8840 #40428A
analogous
#8A6340 #8A8840 #678A40
triadic
#8A8840 #408A88 #88408A
tetradic
#8A8840 #408A63 #40428A #8A4067
square
#8A8840 #408A63 #40428A #8A4067
split-complementary
#8A8840 #40678A #63408A
monochromatic
#363619 #605F2D #8A8840 #B1AE56 #C4C280

Accessibility & contrast

On white

3.70
#8A8840 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.68
#8A8840 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8840
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8840#FFFFFF#000000##000000
##8A88401.003.705.685.68
#FFFFFF3.701.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#928339
Deuteranopia (green-blind)
#938644
Tritanopia (blue-blind)
#938078
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #8a8840;
/* rgb */ color: rgb(138, 136, 64);
/* oklch */ color: oklch(61.3% 0.095 107.4);
Tailwind
colors: {
  custom: {
    50: '#aeaa77',
    500: '#8a8840',
    950: '#000000',
  },
}
SCSS
$custom: #8a8840;
$custom-light: #aeaa77;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8840",
  "rgb": {
    "r": 138,
    "g": 136,
    "b": 64
  },
  "hsl": {
    "h": 58.378,
    "s": 36.634,
    "l": 39.608
  },
  "oklch": {
    "l": 0.61274,
    "c": 0.09454,
    "h": 107.4
  },
  "luminance": 0.23382
}

Semantic roles & 50–950 ramp

primary
#8A8840
secondary
#7779AF
accent
#5ECD5B
background
#FAFAF7
surface
#F5F4ED
border
#CFCEC8
text
#101009
muted
#7F7F7B

Preview Lab

Preview with #8A8840

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

Preview Lab → · Contrast checker → · Palette generator →

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