#8A8A40#8A8A40

#8A8A40 is a mid, moderate yellow. Relative luminance 0.239; OKLCH L 61.7% C 0.097 H 108.9°. Best body text is #000000 at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#8A8A40
RGBrgb(138, 138, 64)
HSLhsl(60, 37%, 40%)
HSVhsv(60, 54%, 54%)
CMYKcmyk(0%, 0%, 53.6%, 45.9%)
CIE-LABlab(56.04, -10.68, 39.09)
CIE-LCHlch(56.04, 40.52, 105.28°)
OKLaboklab(61.73% -0.0314 0.0916)
OKLCHoklch(61.73% 0.097 108.9)
XYZxyz(20.4956, 23.9509, 8.3928)
Luminance0.2395 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8A40 #40408A
analogous
#8A6540 #8A8A40 #658A40
triadic
#8A8A40 #408A8A #8A408A
tetradic
#8A8A40 #408A65 #40408A #8A4065
square
#8A8A40 #408A65 #40408A #8A4065
split-complementary
#8A8A40 #40658A #65408A
monochromatic
#363619 #60602D #8A8A40 #B1B156 #C4C480

Accessibility & contrast

On white

3.63
#8A8A40 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.79
#8A8A40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8A40
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8A40#FFFFFF#000000##000000
##8A8A401.003.635.795.79
#FFFFFF3.631.0021.0021.00
#0000005.7921.001.001.00
##0000005.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#948539
Deuteranopia (green-blind)
#958844
Tritanopia (blue-blind)
#938279
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8a8a40;
/* rgb */ color: rgb(138, 138, 64);
/* oklch */ color: oklch(61.7% 0.097 108.9);
Tailwind
colors: {
  custom: {
    50: '#aeac77',
    500: '#8a8a40',
    950: '#000000',
  },
}
SCSS
$custom: #8a8a40;
$custom-light: #aeac77;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8a40",
  "rgb": {
    "r": 138,
    "g": 138,
    "b": 64
  },
  "hsl": {
    "h": 60,
    "s": 36.634,
    "l": 39.608
  },
  "oklch": {
    "l": 0.61732,
    "c": 0.09688,
    "h": 108.9
  },
  "luminance": 0.2395
}

Semantic roles & 50–950 ramp

primary
#8A8A40
secondary
#7777AF
accent
#5BCD5B
background
#FAFAF7
surface
#F5F4ED
border
#CFCEC8
text
#101009
muted
#7F7F7B

Preview Lab

Preview with #8A8A40

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

Preview Lab → · Contrast checker → · Palette generator →

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