#8C8A42#8C8A42

#8C8A42 is a mid, moderate yellow. Relative luminance 0.241; OKLCH L 61.9% C 0.095 H 107.4°. Best body text is #000000 at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#8C8A42
RGBrgb(140, 138, 66)
HSLhsl(58, 36%, 40%)
HSVhsv(58, 53%, 55%)
CMYKcmyk(0%, 1.4%, 52.9%, 45.1%)
CIE-LABlab(56.23, -9.62, 38.35)
CIE-LCHlch(56.23, 39.54, 104.08°)
OKLaboklab(61.94% -0.0283 0.0902)
OKLCHoklch(61.94% 0.095 107.4)
XYZxyz(20.8876, 24.1463, 8.7136)
Luminance0.2415 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C8A42 #42448C
analogous
#8C6542 #8C8A42 #698C42
triadic
#8C8A42 #428C8A #8A428C
tetradic
#8C8A42 #428C65 #42448C #8C4269
square
#8C8A42 #428C65 #42448C #8C4269
split-complementary
#8C8A42 #42698C #65428C
monochromatic
#39381B #62612E #8C8A42 #B1AF5A #C5C384

Accessibility & contrast

On white

3.60
#8C8A42 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.83
#8C8A42 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8C8A42
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C8A42#FFFFFF#000000##000000
##8C8A421.003.605.835.83
#FFFFFF3.601.0021.0021.00
#0000005.8321.001.001.00
##0000005.8321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8c8a42;
/* rgb */ color: rgb(140, 138, 66);
/* oklch */ color: oklch(61.9% 0.095 107.4);
Tailwind
colors: {
  custom: {
    50: '#afac78',
    500: '#8c8a42',
    950: '#000000',
  },
}
SCSS
$custom: #8c8a42;
$custom-light: #afac78;
$custom-dark: #000000;
JSON
{
  "hex": "#8c8a42",
  "rgb": {
    "r": 140,
    "g": 138,
    "b": 66
  },
  "hsl": {
    "h": 58.378,
    "s": 35.922,
    "l": 40.392
  },
  "oklch": {
    "l": 0.61937,
    "c": 0.09456,
    "h": 107.4
  },
  "luminance": 0.24146
}

Semantic roles & 50–950 ramp

primary
#8C8A42
secondary
#7A7CB0
accent
#5FCC5C
background
#FBFAF7
surface
#F6F4ED
border
#D0CEC8
text
#111009
muted
#807F7B

Preview Lab

Preview with #8C8A42

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

Preview Lab → · Contrast checker → · Palette generator →

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