#8A8642#8A8642

#8A8642 is a mid, moderate yellow. Relative luminance 0.228; OKLCH L 60.8% C 0.090 H 105.7°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#8A8642
RGBrgb(138, 134, 66)
HSLhsl(57, 35%, 40%)
HSVhsv(57, 52%, 54%)
CMYKcmyk(0%, 2.9%, 52.2%, 45.9%)
CIE-LABlab(54.91, -8.32, 36.76)
CIE-LCHlch(54.91, 37.69, 102.76°)
OKLaboklab(60.85% -0.0245 0.0868)
OKLCHoklch(60.85% 0.09 105.7)
XYZxyz(19.9902, 22.8474, 8.5102)
Luminance0.2285 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8642 #42468A
analogous
#8A6242 #8A8642 #6A8A42
triadic
#8A8642 #428A86 #86428A
tetradic
#8A8642 #428A62 #42468A #8A426A
square
#8A8642 #428A62 #42468A #8A426A
split-complementary
#8A8642 #426A8A #62428A
monochromatic
#37361A #615E2E #8A8642 #B0AB59 #C4C083

Accessibility & contrast

On white

3.77
#8A8642 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#8A8642 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8642
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8642#FFFFFF#000000##000000
##8A86421.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#90823C
Deuteranopia (green-blind)
#928545
Tritanopia (blue-blind)
#937E76
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #8a8642;
/* rgb */ color: rgb(138, 134, 66);
/* oklch */ color: oklch(60.8% 0.090 105.7);
Tailwind
colors: {
  custom: {
    50: '#aea978',
    500: '#8a8642',
    950: '#000000',
  },
}
SCSS
$custom: #8a8642;
$custom-light: #aea978;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8642",
  "rgb": {
    "r": 138,
    "g": 134,
    "b": 66
  },
  "hsl": {
    "h": 56.667,
    "s": 35.294,
    "l": 40
  },
  "oklch": {
    "l": 0.60845,
    "c": 0.09016,
    "h": 105.7
  },
  "luminance": 0.22847
}

Semantic roles & 50–950 ramp

primary
#8A8642
secondary
#797CAE
accent
#63CB5C
background
#FAFAF7
surface
#F5F4ED
border
#CFCEC8
text
#100F09
muted
#7F7F7B

Preview Lab

Preview with #8A8642

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

Preview Lab → · Contrast checker → · Palette generator →

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