#8A9540#8A9540

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

Color values

HEX#8A9540
RGBrgb(138, 149, 64)
HSLhsl(68, 40%, 42%)
HSVhsv(68, 57%, 58%)
CMYKcmyk(7.4%, 0%, 57%, 41.6%)
CIE-LABlab(59.22, -16.52, 42.75)
CIE-LCHlch(59.22, 45.83, 111.13°)
OKLaboklab(64.28% -0.048 0.0995)
OKLCHoklch(64.28% 0.11 115.7)
XYZxyz(22.1545, 27.2686, 8.9458)
Luminance0.2727 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9540 #4B4095
analogous
#957640 #8A9540 #609540
triadic
#8A9540 #408A95 #95408A
tetradic
#8A9540 #409576 #4B4095 #954060
square
#8A9540 #409576 #4B4095 #954060
split-complementary
#8A9540 #406095 #764095
monochromatic
#3B3F1B #626A2E #8A9540 #ACB85A #C2CB85

Accessibility & contrast

On white

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

On black

6.45
#8A9540 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A9540
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A9540#FFFFFF#000000##000000
##8A95401.003.256.456.45
#FFFFFF3.251.0021.0021.00
#0000006.4521.001.001.00
##0000006.4521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a9540;
/* rgb */ color: rgb(138, 149, 64);
/* oklch */ color: oklch(64.3% 0.110 115.7);
Tailwind
colors: {
  custom: {
    50: '#aeb478',
    500: '#8a9540',
    950: '#000000',
  },
}
SCSS
$custom: #8a9540;
$custom-light: #aeb478;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9540",
  "rgb": {
    "r": 138,
    "g": 149,
    "b": 64
  },
  "hsl": {
    "h": 67.765,
    "s": 39.906,
    "l": 41.765
  },
  "oklch": {
    "l": 0.64275,
    "c": 0.11048,
    "h": 115.7
  },
  "luminance": 0.27268
}

Semantic roles & 50–950 ramp

primary
#8A9540
secondary
#837CB5
accent
#58D068
background
#FAFBF7
surface
#F5F6ED
border
#CFD0C8
text
#111109
muted
#80807B

Preview Lab

Preview with #8A9540

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

Preview Lab → · Contrast checker → · Palette generator →

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