#8A8545#8A8545

#8A8545 is a mid, moderate yellow. Relative luminance 0.226; OKLCH L 60.7% C 0.086 H 104.7°. Best body text is #000000 at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#8A8545
RGBrgb(138, 133, 69)
HSLhsl(56, 33%, 41%)
HSVhsv(56, 50%, 54%)
CMYKcmyk(0%, 3.6%, 50%, 45.9%)
CIE-LABlab(54.67, -7.48, 34.90)
CIE-LCHlch(54.67, 35.70, 102.10°)
OKLaboklab(60.66% -0.0217 0.083)
OKLCHoklch(60.66% 0.086 104.7)
XYZxyz(19.9434, 22.6086, 8.9424)
Luminance0.2261 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8545 #454A8A
analogous
#8A6245 #8A8545 #6C8A45
triadic
#8A8545 #458A85 #85458A
tetradic
#8A8545 #458A62 #454A8A #8A456C
square
#8A8545 #458A62 #454A8A #8A456C
split-complementary
#8A8545 #456C8A #62458A
monochromatic
#38361C #615E31 #8A8545 #AEA95E #C3BE87

Accessibility & contrast

On white

3.80
#8A8545 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.52
#8A8545 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8545
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8545#FFFFFF#000000##000000
##8A85451.003.805.525.52
#FFFFFF3.801.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F813F
Deuteranopia (green-blind)
#918448
Tritanopia (blue-blind)
#937E76
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #8a8545;
/* rgb */ color: rgb(138, 133, 69);
/* oklch */ color: oklch(60.7% 0.086 104.7);
Tailwind
colors: {
  custom: {
    50: '#aea87a',
    500: '#8a8545',
    950: '#000000',
  },
}
SCSS
$custom: #8a8545;
$custom-light: #aea87a;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8545",
  "rgb": {
    "r": 138,
    "g": 133,
    "b": 69
  },
  "hsl": {
    "h": 55.652,
    "s": 33.333,
    "l": 40.588
  },
  "oklch": {
    "l": 0.6066,
    "c": 0.08581,
    "h": 104.7
  },
  "luminance": 0.22608
}

Semantic roles & 50–950 ramp

primary
#8A8545
secondary
#7D80AE
accent
#66C95E
background
#FAFAF7
surface
#F4F4EE
border
#CECEC9
text
#100F09
muted
#7F7F7B

Preview Lab

Preview with #8A8545

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

Preview Lab → · Contrast checker → · Palette generator →

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