#8A8745#8A8745

#8A8745 is a mid, moderate yellow. Relative luminance 0.232; OKLCH L 61.1% C 0.088 H 106.4°. Best body text is #000000 at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#8A8745
RGBrgb(138, 135, 69)
HSLhsl(57, 33%, 41%)
HSVhsv(57, 50%, 54%)
CMYKcmyk(0%, 2.2%, 50%, 45.9%)
CIE-LABlab(55.24, -8.58, 35.59)
CIE-LCHlch(55.24, 36.61, 103.55°)
OKLaboklab(61.11% -0.0249 0.0845)
OKLCHoklch(61.11% 0.088 106.4)
XYZxyz(20.2199, 23.1614, 9.0345)
Luminance0.2316 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8745 #45488A
analogous
#8A6445 #8A8745 #6A8A45
triadic
#8A8745 #458A87 #87458A
tetradic
#8A8745 #458A64 #45488A #8A456A
square
#8A8745 #458A64 #45488A #8A456A
split-complementary
#8A8745 #456A8A #64458A
monochromatic
#38371C #615F31 #8A8745 #AEAB5E #C3C087

Accessibility & contrast

On white

3.73
#8A8745 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.63
#8A8745 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8745
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8745#FFFFFF#000000##000000
##8A87451.003.735.635.63
#FFFFFF3.731.0021.0021.00
#0000005.6321.001.001.00
##0000005.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#91833F
Deuteranopia (green-blind)
#928648
Tritanopia (blue-blind)
#938078
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #8a8745;
/* rgb */ color: rgb(138, 135, 69);
/* oklch */ color: oklch(61.1% 0.088 106.4);
Tailwind
colors: {
  custom: {
    50: '#aea97a',
    500: '#8a8745',
    950: '#000000',
  },
}
SCSS
$custom: #8a8745;
$custom-light: #aea97a;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8745",
  "rgb": {
    "r": 138,
    "g": 135,
    "b": 69
  },
  "hsl": {
    "h": 57.391,
    "s": 33.333,
    "l": 40.588
  },
  "oklch": {
    "l": 0.61114,
    "c": 0.08811,
    "h": 106.4
  },
  "luminance": 0.23161
}

Semantic roles & 50–950 ramp

primary
#8A8745
secondary
#7D7FAE
accent
#63C95E
background
#FAFAF7
surface
#F4F4EE
border
#CECEC9
text
#100F09
muted
#7F7F7B

Preview Lab

Preview with #8A8745

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

Preview Lab → · Contrast checker → · Palette generator →

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