#8A9545#8A9545

#8A9545 is a light, moderate yellow. Relative luminance 0.273; OKLCH L 64.3% C 0.106 H 115.9°. Best body text is #000000 at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#8A9545
RGBrgb(138, 149, 69)
HSLhsl(68, 37%, 43%)
HSVhsv(68, 54%, 58%)
CMYKcmyk(7.4%, 0%, 53.7%, 41.6%)
CIE-LABlab(59.28, -16.07, 40.37)
CIE-LCHlch(59.28, 43.46, 111.70°)
OKLaboklab(64.34% -0.0462 0.0949)
OKLCHoklch(64.34% 0.106 115.9)
XYZxyz(22.3032, 27.3281, 9.7290)
Luminance0.2733 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9545 #504595
analogous
#957845 #8A9545 #629545
triadic
#8A9545 #458A95 #95458A
tetradic
#8A9545 #459578 #504595 #954562
square
#8A9545 #459578 #504595 #954562
split-complementary
#8A9545 #456295 #784595
monochromatic
#3D411E #636B32 #8A9545 #AAB661 #C1C98B

Accessibility & contrast

On white

3.25
#8A9545 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.47
#8A9545 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A9545
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A9545#FFFFFF#000000##000000
##8A95451.003.256.476.47
#FFFFFF3.251.0021.0021.00
#0000006.4721.001.001.00
##0000006.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#9E8E3D
Deuteranopia (green-blind)
#9D8F4A
Tritanopia (blue-blind)
#928E83
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #8a9545;
/* rgb */ color: rgb(138, 149, 69);
/* oklch */ color: oklch(64.3% 0.106 115.9);
Tailwind
colors: {
  custom: {
    50: '#aeb47b',
    500: '#8a9545',
    950: '#000000',
  },
}
SCSS
$custom: #8a9545;
$custom-light: #aeb47b;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9545",
  "rgb": {
    "r": 138,
    "g": 149,
    "b": 69
  },
  "hsl": {
    "h": 68.25,
    "s": 36.697,
    "l": 42.745
  },
  "oklch": {
    "l": 0.64336,
    "c": 0.10558,
    "h": 115.9
  },
  "luminance": 0.27328
}

Semantic roles & 50–950 ramp

primary
#8A9545
secondary
#8881B5
accent
#5BCD6B
background
#FAFBF7
surface
#F5F6EE
border
#CFD0C9
text
#101109
muted
#7F807B

Preview Lab

Preview with #8A9545

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

Preview Lab → · Contrast checker → · Palette generator →

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