#8D8A40#8D8A40

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

Color values

HEX#8D8A40
RGBrgb(141, 138, 64)
HSLhsl(58, 38%, 40%)
HSVhsv(58, 55%, 55%)
CMYKcmyk(0%, 2.1%, 54.6%, 44.7%)
CIE-LABlab(56.30, -9.36, 39.46)
CIE-LCHlch(56.30, 40.55, 103.35°)
OKLaboklab(62% -0.0279 0.0924)
OKLCHoklch(62% 0.096 106.8)
XYZxyz(20.9990, 24.2104, 8.4164)
Luminance0.2421 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D8A40 #40438D
analogous
#8D6340 #8D8A40 #6A8D40
triadic
#8D8A40 #408D8A #8A408D
tetradic
#8D8A40 #408D63 #40438D #8D406A
square
#8D8A40 #408D63 #40438D #8D406A
split-complementary
#8D8A40 #406A8D #63408D
monochromatic
#39381A #63612D #8D8A40 #B3AF57 #C6C381

Accessibility & contrast

On white

3.59
#8D8A40 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##8D8A40#FFFFFF#000000##000000
##8D8A401.003.595.845.84
#FFFFFF3.591.0021.0021.00
#0000005.8421.001.001.00
##0000005.8421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8d8a40;
/* rgb */ color: rgb(141, 138, 64);
/* oklch */ color: oklch(62.0% 0.096 106.8);
Tailwind
colors: {
  custom: {
    50: '#b0ac77',
    500: '#8d8a40',
    950: '#000000',
  },
}
SCSS
$custom: #8d8a40;
$custom-light: #b0ac77;
$custom-dark: #000000;
JSON
{
  "hex": "#8d8a40",
  "rgb": {
    "r": 141,
    "g": 138,
    "b": 64
  },
  "hsl": {
    "h": 57.662,
    "s": 37.561,
    "l": 40.196
  },
  "oklch": {
    "l": 0.62001,
    "c": 0.09649,
    "h": 106.8
  },
  "luminance": 0.2421
}

Semantic roles & 50–950 ramp

primary
#8D8A40
secondary
#787BB0
accent
#5FCE5A
background
#FBFAF7
surface
#F6F4ED
border
#D0CEC8
text
#111009
muted
#807F7B

Preview Lab

Preview with #8D8A40

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

Preview Lab → · Contrast checker → · Palette generator →

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