#8C8A3D#8C8A3D

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

Color values

HEX#8C8A3D
RGBrgb(140, 138, 61)
HSLhsl(58, 39%, 39%)
HSVhsv(58, 56%, 55%)
CMYKcmyk(0%, 1.4%, 56.4%, 45.1%)
CIE-LABlab(56.18, -10.06, 40.78)
CIE-LCHlch(56.18, 42.00, 103.86°)
OKLaboklab(61.87% -0.0301 0.0949)
OKLCHoklch(61.87% 0.1 107.6)
XYZxyz(20.7466, 24.0899, 7.9709)
Luminance0.2409 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C8A3D #3D3F8C
analogous
#8C633D #8C8A3D #678C3D
triadic
#8C8A3D #3D8C8A #8A3D8C
tetradic
#8C8A3D #3D8C63 #3D3F8C #8C3D67
square
#8C8A3D #3D8C63 #3D3F8C #8C3D67
split-complementary
#8C8A3D #3D678C #633D8C
monochromatic
#373618 #61602A #8C8A3D #B4B152 #C6C57D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8C8A3D#FFFFFF#000000##000000
##8C8A3D1.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)
#948535
Deuteranopia (green-blind)
#968841
Tritanopia (blue-blind)
#958279
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8c8a3d;
/* rgb */ color: rgb(140, 138, 61);
/* oklch */ color: oklch(61.9% 0.100 107.6);
Tailwind
colors: {
  custom: {
    50: '#b0ac75',
    500: '#8c8a3d',
    950: '#000000',
  },
}
SCSS
$custom: #8c8a3d;
$custom-light: #b0ac75;
$custom-dark: #000000;
JSON
{
  "hex": "#8c8a3d",
  "rgb": {
    "r": 140,
    "g": 138,
    "b": 61
  },
  "hsl": {
    "h": 58.481,
    "s": 39.303,
    "l": 39.412
  },
  "oklch": {
    "l": 0.61874,
    "c": 0.09957,
    "h": 107.6
  },
  "luminance": 0.24089
}

Semantic roles & 50–950 ramp

primary
#8C8A3D
secondary
#7576B0
accent
#5CCF59
background
#FBFAF7
surface
#F6F4ED
border
#D0CEC8
text
#111008
muted
#807F7B

Preview Lab

Preview with #8C8A3D

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

Preview Lab → · Contrast checker → · Palette generator →

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