#8A8240#8A8240

#8A8240 is a mid, moderate yellow. Relative luminance 0.217; OKLCH L 59.9% C 0.088 H 102.4°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#8A8240
RGBrgb(138, 130, 64)
HSLhsl(54, 37%, 40%)
HSVhsv(54, 54%, 54%)
CMYKcmyk(0%, 5.8%, 53.6%, 45.9%)
CIE-LABlab(53.75, -6.30, 36.41)
CIE-LCHlch(53.75, 36.95, 99.82°)
OKLaboklab(59.91% -0.0189 0.0858)
OKLCHoklch(59.91% 0.088 102.4)
XYZxyz(19.3899, 21.7394, 8.0242)
Luminance0.2174 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8240 #40488A
analogous
#8A5D40 #8A8240 #6D8A40
triadic
#8A8240 #408A82 #82408A
tetradic
#8A8240 #408A5D #40488A #8A406D
square
#8A8240 #408A5D #40488A #8A406D
split-complementary
#8A8240 #406D8A #5D408A
monochromatic
#363319 #605B2D #8A8240 #B1A756 #C4BD80

Accessibility & contrast

On white

3.93
#8A8240 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#8A8240 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8240
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8240#FFFFFF#000000##000000
##8A82401.003.935.355.35
#FFFFFF3.931.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7E3A
Deuteranopia (green-blind)
#8F8243
Tritanopia (blue-blind)
#937A73
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #8a8240;
/* rgb */ color: rgb(138, 130, 64);
/* oklch */ color: oklch(59.9% 0.088 102.4);
Tailwind
colors: {
  custom: {
    50: '#aea677',
    500: '#8a8240',
    950: '#000000',
  },
}
SCSS
$custom: #8a8240;
$custom-light: #aea677;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8240",
  "rgb": {
    "r": 138,
    "g": 130,
    "b": 64
  },
  "hsl": {
    "h": 53.514,
    "s": 36.634,
    "l": 39.608
  },
  "oklch": {
    "l": 0.59911,
    "c": 0.08788,
    "h": 102.4
  },
  "luminance": 0.21739
}

Semantic roles & 50–950 ramp

primary
#8A8240
secondary
#777DAF
accent
#67CD5B
background
#FAFAF7
surface
#F5F4ED
border
#CFCEC8
text
#100F09
muted
#7F7F7B

Preview Lab

Preview with #8A8240

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

Preview Lab → · Contrast checker → · Palette generator →

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