#8A8740#8A8740

#8A8740 is a mid, moderate yellow. Relative luminance 0.231; OKLCH L 61.0% C 0.093 H 106.7°. Best body text is #000000 at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#8A8740
RGBrgb(138, 135, 64)
HSLhsl(58, 37%, 40%)
HSVhsv(58, 54%, 54%)
CMYKcmyk(0%, 2.2%, 53.6%, 45.9%)
CIE-LABlab(55.18, -9.05, 38.08)
CIE-LCHlch(55.18, 39.14, 103.37°)
OKLaboklab(61.05% -0.0268 0.0895)
OKLCHoklch(61.05% 0.093 106.7)
XYZxyz(20.0712, 23.1020, 8.2513)
Luminance0.2310 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8740 #40438A
analogous
#8A6240 #8A8740 #688A40
triadic
#8A8740 #408A87 #87408A
tetradic
#8A8740 #408A62 #40438A #8A4068
square
#8A8740 #408A62 #40438A #8A4068
split-complementary
#8A8740 #40688A #62408A
monochromatic
#363519 #605E2D #8A8740 #B1AD56 #C4C180

Accessibility & contrast

On white

3.74
#8A8740 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.62
#8A8740 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8740
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8740#FFFFFF#000000##000000
##8A87401.003.745.625.62
#FFFFFF3.741.0021.0021.00
#0000005.6221.001.001.00
##0000005.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#918239
Deuteranopia (green-blind)
#938644
Tritanopia (blue-blind)
#937F77
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #8a8740;
/* rgb */ color: rgb(138, 135, 64);
/* oklch */ color: oklch(61.0% 0.093 106.7);
Tailwind
colors: {
  custom: {
    50: '#aea977',
    500: '#8a8740',
    950: '#000000',
  },
}
SCSS
$custom: #8a8740;
$custom-light: #aea977;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8740",
  "rgb": {
    "r": 138,
    "g": 135,
    "b": 64
  },
  "hsl": {
    "h": 57.568,
    "s": 36.634,
    "l": 39.608
  },
  "oklch": {
    "l": 0.61046,
    "c": 0.09339,
    "h": 106.7
  },
  "luminance": 0.23101
}

Semantic roles & 50–950 ramp

primary
#8A8740
secondary
#7779AF
accent
#60CD5B
background
#FAFAF7
surface
#F5F4ED
border
#CFCEC8
text
#100F09
muted
#7F7F7B

Preview Lab

Preview with #8A8740

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

Preview Lab → · Contrast checker → · Palette generator →

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