#8C8A3A#8C8A3A

#8C8A3A is a mid, moderate yellow. Relative luminance 0.241; OKLCH L 61.8% C 0.102 H 107.7°. Best body text is #000000 at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#8C8A3A
RGBrgb(140, 138, 58)
HSLhsl(59, 41%, 39%)
HSVhsv(59, 59%, 55%)
CMYKcmyk(0%, 1.4%, 58.6%, 45.1%)
CIE-LABlab(56.15, -10.31, 42.20)
CIE-LCHlch(56.15, 43.44, 103.72°)
OKLaboklab(61.84% -0.0312 0.0976)
OKLCHoklch(61.84% 0.102 107.7)
XYZxyz(20.6680, 24.0585, 7.5572)
Luminance0.2406 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C8A3A #3A3C8C
analogous
#8C613A #8C8A3A #658C3A
triadic
#8C8A3A #3A8C8A #8A3A8C
tetradic
#8C8A3A #3A8C61 #3A3C8C #8C3A65
square
#8C8A3A #3A8C61 #3A3C8C #8C3A65
split-complementary
#8C8A3A #3A658C #613A8C
monochromatic
#353516 #615F28 #8C8A3A #B6B34E #C7C679

Accessibility & contrast

On white

3.61
#8C8A3A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.81
#8C8A3A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8C8A3A
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C8A3A#FFFFFF#000000##000000
##8C8A3A1.003.615.815.81
#FFFFFF3.611.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#958531
Deuteranopia (green-blind)
#96883E
Tritanopia (blue-blind)
#958279
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8c8a3a;
/* rgb */ color: rgb(140, 138, 58);
/* oklch */ color: oklch(61.8% 0.102 107.7);
Tailwind
colors: {
  custom: {
    50: '#b0ac73',
    500: '#8c8a3a',
    950: '#000000',
  },
}
SCSS
$custom: #8c8a3a;
$custom-light: #b0ac73;
$custom-dark: #000000;
JSON
{
  "hex": "#8c8a3a",
  "rgb": {
    "r": 140,
    "g": 138,
    "b": 58
  },
  "hsl": {
    "h": 58.537,
    "s": 41.414,
    "l": 38.824
  },
  "oklch": {
    "l": 0.61839,
    "c": 0.10243,
    "h": 107.7
  },
  "luminance": 0.24058
}

Semantic roles & 50–950 ramp

primary
#8C8A3A
secondary
#7173B1
accent
#5AD157
background
#FBFAF7
surface
#F6F4ED
border
#D0CEC8
text
#111008
muted
#807F7B

Preview Lab

Preview with #8C8A3A

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

Preview Lab → · Contrast checker → · Palette generator →

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