#8A9541#8A9541

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

Color values

HEX#8A9541
RGBrgb(138, 149, 65)
HSLhsl(68, 39%, 42%)
HSVhsv(68, 56%, 58%)
CMYKcmyk(7.4%, 0%, 56.4%, 41.6%)
CIE-LABlab(59.23, -16.43, 42.28)
CIE-LCHlch(59.23, 45.36, 111.24°)
OKLaboklab(64.29% -0.0476 0.0986)
OKLCHoklch(64.29% 0.11 115.8)
XYZxyz(22.1832, 27.2801, 9.0970)
Luminance0.2728 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9541 #4C4195
analogous
#957641 #8A9541 #609541
triadic
#8A9541 #418A95 #95418A
tetradic
#8A9541 #419576 #4C4195 #954160
square
#8A9541 #419576 #4C4195 #954160
split-complementary
#8A9541 #416095 #764195
monochromatic
#3B401C #636A2E #8A9541 #ACB85C #C1CA86

Accessibility & contrast

On white

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

On black

6.46
#8A9541 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A9541
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A9541#FFFFFF#000000##000000
##8A95411.003.256.466.46
#FFFFFF3.251.0021.0021.00
#0000006.4621.001.001.00
##0000006.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#9E8E38
Deuteranopia (green-blind)
#9E8F46
Tritanopia (blue-blind)
#928D82
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #8a9541;
/* rgb */ color: rgb(138, 149, 65);
/* oklch */ color: oklch(64.3% 0.110 115.8);
Tailwind
colors: {
  custom: {
    50: '#aeb478',
    500: '#8a9541',
    950: '#000000',
  },
}
SCSS
$custom: #8a9541;
$custom-light: #aeb478;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9541",
  "rgb": {
    "r": 138,
    "g": 149,
    "b": 65
  },
  "hsl": {
    "h": 67.857,
    "s": 39.252,
    "l": 41.961
  },
  "oklch": {
    "l": 0.64287,
    "c": 0.10952,
    "h": 115.8
  },
  "luminance": 0.2728
}

Semantic roles & 50–950 ramp

primary
#8A9541
secondary
#847DB5
accent
#59CF68
background
#FAFBF7
surface
#F5F6ED
border
#CFD0C8
text
#101109
muted
#7F807B

Preview Lab

Preview with #8A9541

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

Preview Lab → · Contrast checker → · Palette generator →

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