#8A8A42#8A8A42

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

Color values

HEX#8A8A42
RGBrgb(138, 138, 66)
HSLhsl(60, 35%, 40%)
HSVhsv(60, 52%, 54%)
CMYKcmyk(0%, 0%, 52.2%, 45.9%)
CIE-LABlab(56.06, -10.50, 38.11)
CIE-LCHlch(56.06, 39.53, 105.40°)
OKLaboklab(61.76% -0.0307 0.0897)
OKLCHoklch(61.76% 0.095 108.9)
XYZxyz(20.5536, 23.9741, 8.6979)
Luminance0.2397 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8A42 #42428A
analogous
#8A6642 #8A8A42 #668A42
triadic
#8A8A42 #428A8A #8A428A
tetradic
#8A8A42 #428A66 #42428A #8A4266
square
#8A8A42 #428A66 #42428A #8A4266
split-complementary
#8A8A42 #42668A #66428A
monochromatic
#37371A #61612E #8A8A42 #B0B059 #C4C483

Accessibility & contrast

On white

3.62
#8A8A42 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A8A42#FFFFFF#000000##000000
##8A8A421.003.625.795.79
#FFFFFF3.621.0021.0021.00
#0000005.7921.001.001.00
##0000005.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#94853B
Deuteranopia (green-blind)
#958846
Tritanopia (blue-blind)
#93827A
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8a8a42;
/* rgb */ color: rgb(138, 138, 66);
/* oklch */ color: oklch(61.8% 0.095 108.9);
Tailwind
colors: {
  custom: {
    50: '#aeac78',
    500: '#8a8a42',
    950: '#000000',
  },
}
SCSS
$custom: #8a8a42;
$custom-light: #aeac78;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8a42",
  "rgb": {
    "r": 138,
    "g": 138,
    "b": 66
  },
  "hsl": {
    "h": 60,
    "s": 35.294,
    "l": 40
  },
  "oklch": {
    "l": 0.61758,
    "c": 0.09483,
    "h": 108.9
  },
  "luminance": 0.23974
}

Semantic roles & 50–950 ramp

primary
#8A8A42
secondary
#7979AE
accent
#5CCB5C
background
#FAFAF7
surface
#F5F4ED
border
#CFCEC8
text
#101009
muted
#7F7F7B

Preview Lab

Preview with #8A8A42

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

Preview Lab → · Contrast checker → · Palette generator →

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