#8A8A41#8A8A41

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

Color values

HEX#8A8A41
RGBrgb(138, 138, 65)
HSLhsl(60, 36%, 40%)
HSVhsv(60, 53%, 54%)
CMYKcmyk(0%, 0%, 52.9%, 45.9%)
CIE-LABlab(56.05, -10.59, 38.60)
CIE-LCHlch(56.05, 40.03, 105.34°)
OKLaboklab(61.75% -0.0311 0.0907)
OKLCHoklch(61.75% 0.096 108.9)
XYZxyz(20.5243, 23.9624, 8.5440)
Luminance0.2396 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8A41 #41418A
analogous
#8A6641 #8A8A41 #668A41
triadic
#8A8A41 #418A8A #8A418A
tetradic
#8A8A41 #418A66 #41418A #8A4166
square
#8A8A41 #418A66 #41418A #8A4166
split-complementary
#8A8A41 #41668A #66418A
monochromatic
#37371A #60602D #8A8A41 #B0B058 #C4C482

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A8A41#FFFFFF#000000##000000
##8A8A411.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)
#94853A
Deuteranopia (green-blind)
#958845
Tritanopia (blue-blind)
#93827A
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8a8a41;
/* rgb */ color: rgb(138, 138, 65);
/* oklch */ color: oklch(61.7% 0.096 108.9);
Tailwind
colors: {
  custom: {
    50: '#aeac78',
    500: '#8a8a41',
    950: '#000000',
  },
}
SCSS
$custom: #8a8a41;
$custom-light: #aeac78;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8a41",
  "rgb": {
    "r": 138,
    "g": 138,
    "b": 65
  },
  "hsl": {
    "h": 60,
    "s": 35.961,
    "l": 39.804
  },
  "oklch": {
    "l": 0.61745,
    "c": 0.09586,
    "h": 108.9
  },
  "luminance": 0.23962
}

Semantic roles & 50–950 ramp

primary
#8A8A41
secondary
#7878AE
accent
#5CCC5C
background
#FAFAF7
surface
#F5F4ED
border
#CFCEC8
text
#101009
muted
#7F7F7B

Preview Lab

Preview with #8A8A41

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

Preview Lab → · Contrast checker → · Palette generator →

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