#8A8342#8A8342

#8A8342 is a mid, moderate yellow. Relative luminance 0.220; OKLCH L 60.2% C 0.087 H 103.1°. Best body text is #000000 at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#8A8342
RGBrgb(138, 131, 66)
HSLhsl(54, 35%, 40%)
HSVhsv(54, 52%, 54%)
CMYKcmyk(0%, 5.1%, 52.2%, 45.9%)
CIE-LABlab(54.06, -6.67, 35.74)
CIE-LCHlch(54.06, 36.36, 100.57°)
OKLaboklab(60.17% -0.0197 0.0846)
OKLCHoklch(60.17% 0.087 103.1)
XYZxyz(19.5815, 22.0299, 8.3739)
Luminance0.2203 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8342 #42498A
analogous
#8A5F42 #8A8342 #6D8A42
triadic
#8A8342 #428A83 #83428A
tetradic
#8A8342 #428A5F #42498A #8A426D
square
#8A8342 #428A5F #42498A #8A426D
split-complementary
#8A8342 #426D8A #5F428A
monochromatic
#37341A #615C2E #8A8342 #B0A759 #C4BD83

Accessibility & contrast

On white

3.88
#8A8342 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.41
#8A8342 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8342
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8342#FFFFFF#000000##000000
##8A83421.003.885.415.41
#FFFFFF3.881.0021.0021.00
#0000005.4121.001.001.00
##0000005.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7F3C
Deuteranopia (green-blind)
#8F8345
Tritanopia (blue-blind)
#937B74
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #8a8342;
/* rgb */ color: rgb(138, 131, 66);
/* oklch */ color: oklch(60.2% 0.087 103.1);
Tailwind
colors: {
  custom: {
    50: '#aea678',
    500: '#8a8342',
    950: '#000000',
  },
}
SCSS
$custom: #8a8342;
$custom-light: #aea678;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8342",
  "rgb": {
    "r": 138,
    "g": 131,
    "b": 66
  },
  "hsl": {
    "h": 54.167,
    "s": 35.294,
    "l": 40
  },
  "oklch": {
    "l": 0.60165,
    "c": 0.08683,
    "h": 103.1
  },
  "luminance": 0.22029
}

Semantic roles & 50–950 ramp

primary
#8A8342
secondary
#797FAE
accent
#67CB5C
background
#FAFAF7
surface
#F5F4ED
border
#CFCEC8
text
#100F09
muted
#7F7F7B

Preview Lab

Preview with #8A8342

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

Preview Lab → · Contrast checker → · Palette generator →

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