#8D8A3F#8D8A3F

#8D8A3F is a mid, moderate yellow. Relative luminance 0.242; OKLCH L 62.0% C 0.097 H 106.8°. Best body text is #000000 at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#8D8A3F
RGBrgb(141, 138, 63)
HSLhsl(58, 38%, 40%)
HSVhsv(58, 55%, 55%)
CMYKcmyk(0%, 2.1%, 55.3%, 44.7%)
CIE-LABlab(56.29, -9.45, 39.94)
CIE-LCHlch(56.29, 41.04, 103.31°)
OKLaboklab(61.99% -0.0282 0.0933)
OKLCHoklch(61.99% 0.097 106.8)
XYZxyz(20.9708, 24.1992, 8.2679)
Luminance0.2420 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D8A3F #3F428D
analogous
#8D633F #8D8A3F #698D3F
triadic
#8D8A3F #3F8D8A #8A3F8D
tetradic
#8D8A3F #3F8D63 #3F428D #8D3F69
square
#8D8A3F #3F8D63 #3F428D #8D3F69
split-complementary
#8D8A3F #3F698D #633F8D
monochromatic
#383719 #63612C #8D8A3F #B3B056 #C6C480

Accessibility & contrast

On white

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

On black

5.84
#8D8A3F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D8A3F
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D8A3F#FFFFFF#000000##000000
##8D8A3F1.003.605.845.84
#FFFFFF3.601.0021.0021.00
#0000005.8421.001.001.00
##0000005.8421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8d8a3f;
/* rgb */ color: rgb(141, 138, 63);
/* oklch */ color: oklch(62.0% 0.097 106.8);
Tailwind
colors: {
  custom: {
    50: '#b0ac76',
    500: '#8d8a3f',
    950: '#000000',
  },
}
SCSS
$custom: #8d8a3f;
$custom-light: #b0ac76;
$custom-dark: #000000;
JSON
{
  "hex": "#8d8a3f",
  "rgb": {
    "r": 141,
    "g": 138,
    "b": 63
  },
  "hsl": {
    "h": 57.692,
    "s": 38.235,
    "l": 40
  },
  "oklch": {
    "l": 0.61989,
    "c": 0.09749,
    "h": 106.8
  },
  "luminance": 0.24199
}

Semantic roles & 50–950 ramp

primary
#8D8A3F
secondary
#7779B1
accent
#5ECE5A
background
#FBFAF7
surface
#F6F4ED
border
#D0CEC8
text
#111009
muted
#807F7B

Preview Lab

Preview with #8D8A3F

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

Preview Lab → · Contrast checker → · Palette generator →

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