#8D9840#8D9840

#8D9840 is a light, moderate yellow. Relative luminance 0.285; OKLCH L 65.2% C 0.113 H 115.6°. Best body text is #000000 at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#8D9840
RGBrgb(141, 152, 64)
HSLhsl(68, 41%, 42%)
HSVhsv(68, 58%, 60%)
CMYKcmyk(7.2%, 0%, 57.9%, 40.4%)
CIE-LABlab(60.33, -16.80, 44.06)
CIE-LCHlch(60.33, 47.16, 110.87°)
OKLaboklab(65.22% -0.0489 0.1023)
OKLCHoklch(65.22% 0.113 115.6)
XYZxyz(23.1386, 28.4897, 9.1296)
Luminance0.2849 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D9840 #4B4098
analogous
#987740 #8D9840 #619840
triadic
#8D9840 #408D98 #98408D
tetradic
#8D9840 #409877 #4B4098 #984061
square
#8D9840 #409877 #4B4098 #984061
split-complementary
#8D9840 #406198 #774098
monochromatic
#3D421C #656D2E #8D9840 #AEBA5B #C3CC86

Accessibility & contrast

On white

3.14
#8D9840 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.70
#8D9840 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D9840
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D9840#FFFFFF#000000##000000
##8D98401.003.146.706.70
#FFFFFF3.141.0021.0021.00
#0000006.7021.001.001.00
##0000006.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#A29137
Deuteranopia (green-blind)
#A19245
Tritanopia (blue-blind)
#959085
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #8d9840;
/* rgb */ color: rgb(141, 152, 64);
/* oklch */ color: oklch(65.2% 0.113 115.6);
Tailwind
colors: {
  custom: {
    50: '#b0b678',
    500: '#8d9840',
    950: '#000000',
  },
}
SCSS
$custom: #8d9840;
$custom-light: #b0b678;
$custom-dark: #000000;
JSON
{
  "hex": "#8d9840",
  "rgb": {
    "r": 141,
    "g": 152,
    "b": 64
  },
  "hsl": {
    "h": 67.5,
    "s": 40.741,
    "l": 42.353
  },
  "oklch": {
    "l": 0.65219,
    "c": 0.11339,
    "h": 115.6
  },
  "luminance": 0.28489
}

Semantic roles & 50–950 ramp

primary
#8D9840
secondary
#847DB7
accent
#57D166
background
#FBFBF7
surface
#F6F6ED
border
#D0D0C8
text
#111109
muted
#80807B

Preview Lab

Preview with #8D9840

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

Preview Lab → · Contrast checker → · Palette generator →

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