#8C8A41#8C8A41

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

Color values

HEX#8C8A41
RGBrgb(140, 138, 65)
HSLhsl(58, 37%, 40%)
HSVhsv(58, 54%, 55%)
CMYKcmyk(0%, 1.4%, 53.6%, 45.1%)
CIE-LABlab(56.22, -9.71, 38.84)
CIE-LCHlch(56.22, 40.04, 104.04°)
OKLaboklab(61.92% -0.0287 0.0912)
OKLCHoklch(61.92% 0.096 107.5)
XYZxyz(20.8584, 24.1346, 8.5597)
Luminance0.2413 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C8A41 #41438C
analogous
#8C6441 #8C8A41 #688C41
triadic
#8C8A41 #418C8A #8A418C
tetradic
#8C8A41 #418C64 #41438C #8C4168
square
#8C8A41 #418C64 #41438C #8C4168
split-complementary
#8C8A41 #41688C #64418C
monochromatic
#38381A #62612E #8C8A41 #B2AF59 #C5C382

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8C8A41#FFFFFF#000000##000000
##8C8A411.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)
#94853A
Deuteranopia (green-blind)
#968845
Tritanopia (blue-blind)
#95827A
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8c8a41;
/* rgb */ color: rgb(140, 138, 65);
/* oklch */ color: oklch(61.9% 0.096 107.5);
Tailwind
colors: {
  custom: {
    50: '#afac78',
    500: '#8c8a41',
    950: '#000000',
  },
}
SCSS
$custom: #8c8a41;
$custom-light: #afac78;
$custom-dark: #000000;
JSON
{
  "hex": "#8c8a41",
  "rgb": {
    "r": 140,
    "g": 138,
    "b": 65
  },
  "hsl": {
    "h": 58.4,
    "s": 36.585,
    "l": 40.196
  },
  "oklch": {
    "l": 0.61924,
    "c": 0.09559,
    "h": 107.5
  },
  "luminance": 0.24134
}

Semantic roles & 50–950 ramp

primary
#8C8A41
secondary
#797BB0
accent
#5ECD5B
background
#FBFAF7
surface
#F6F4ED
border
#D0CEC8
text
#111009
muted
#807F7B

Preview Lab

Preview with #8C8A41

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

Preview Lab → · Contrast checker → · Palette generator →

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