#8A8945#8A8945

#8A8945 is a mid, moderate yellow. Relative luminance 0.237; OKLCH L 61.6% C 0.090 H 108.0°. Best body text is #000000 at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#8A8945
RGBrgb(138, 137, 69)
HSLhsl(59, 33%, 41%)
HSVhsv(59, 50%, 54%)
CMYKcmyk(0%, 0.7%, 50%, 45.9%)
CIE-LABlab(55.81, -9.67, 36.28)
CIE-LCHlch(55.81, 37.55, 104.93°)
OKLaboklab(61.57% -0.028 0.086)
OKLCHoklch(61.57% 0.09 108)
XYZxyz(20.5015, 23.7248, 9.1284)
Luminance0.2372 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8945 #45468A
analogous
#8A6645 #8A8945 #688A45
triadic
#8A8945 #458A89 #89458A
tetradic
#8A8945 #458A66 #45468A #8A4568
square
#8A8945 #458A66 #45468A #8A4568
split-complementary
#8A8945 #45688A #66458A
monochromatic
#38381C #616031 #8A8945 #AEAD5E #C3C287

Accessibility & contrast

On white

3.66
#8A8945 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.74
#8A8945 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8945
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8945#FFFFFF#000000##000000
##8A89451.003.665.745.74
#FFFFFF3.661.0021.0021.00
#0000005.7421.001.001.00
##0000005.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#93843F
Deuteranopia (green-blind)
#948748
Tritanopia (blue-blind)
#928279
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8a8945;
/* rgb */ color: rgb(138, 137, 69);
/* oklch */ color: oklch(61.6% 0.090 108.0);
Tailwind
colors: {
  custom: {
    50: '#aeab7a',
    500: '#8a8945',
    950: '#000000',
  },
}
SCSS
$custom: #8a8945;
$custom-light: #aeab7a;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8945",
  "rgb": {
    "r": 138,
    "g": 137,
    "b": 69
  },
  "hsl": {
    "h": 59.13,
    "s": 33.333,
    "l": 40.588
  },
  "oklch": {
    "l": 0.6157,
    "c": 0.09046,
    "h": 108
  },
  "luminance": 0.23724
}

Semantic roles & 50–950 ramp

primary
#8A8945
secondary
#7D7DAE
accent
#60C95E
background
#FAFAF7
surface
#F4F4EE
border
#CECEC9
text
#101009
muted
#7F7F7B

Preview Lab

Preview with #8A8945

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

Preview Lab → · Contrast checker → · Palette generator →

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