#8C8A3F#8C8A3F

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

Color values

HEX#8C8A3F
RGBrgb(140, 138, 63)
HSLhsl(58, 38%, 40%)
HSVhsv(58, 55%, 55%)
CMYKcmyk(0%, 1.4%, 55%, 45.1%)
CIE-LABlab(56.20, -9.89, 39.82)
CIE-LCHlch(56.20, 41.03, 103.95°)
OKLaboklab(61.9% -0.0294 0.0931)
OKLCHoklch(61.9% 0.098 107.5)
XYZxyz(20.8015, 24.1119, 8.2600)
Luminance0.2411 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C8A3F #3F418C
analogous
#8C643F #8C8A3F #678C3F
triadic
#8C8A3F #3F8C8A #8A3F8C
tetradic
#8C8A3F #3F8C64 #3F418C #8C3F67
square
#8C8A3F #3F8C64 #3F418C #8C3F67
split-complementary
#8C8A3F #3F678C #643F8C
monochromatic
#383719 #62602C #8C8A3F #B3B055 #C6C480

Accessibility & contrast

On white

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

On black

5.82
#8C8A3F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8C8A3F
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C8A3F#FFFFFF#000000##000000
##8C8A3F1.003.615.825.82
#FFFFFF3.611.0021.0021.00
#0000005.8221.001.001.00
##0000005.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#948538
Deuteranopia (green-blind)
#968843
Tritanopia (blue-blind)
#958279
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8c8a3f;
/* rgb */ color: rgb(140, 138, 63);
/* oklch */ color: oklch(61.9% 0.098 107.5);
Tailwind
colors: {
  custom: {
    50: '#afac76',
    500: '#8c8a3f',
    950: '#000000',
  },
}
SCSS
$custom: #8c8a3f;
$custom-light: #afac76;
$custom-dark: #000000;
JSON
{
  "hex": "#8c8a3f",
  "rgb": {
    "r": 140,
    "g": 138,
    "b": 63
  },
  "hsl": {
    "h": 58.442,
    "s": 37.931,
    "l": 39.804
  },
  "oklch": {
    "l": 0.61898,
    "c": 0.0976,
    "h": 107.5
  },
  "luminance": 0.24111
}

Semantic roles & 50–950 ramp

primary
#8C8A3F
secondary
#7778B0
accent
#5DCE5A
background
#FBFAF7
surface
#F6F4ED
border
#D0CEC8
text
#111009
muted
#807F7B

Preview Lab

Preview with #8C8A3F

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

Preview Lab → · Contrast checker → · Palette generator →

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