#8B9840#8B9840

#8B9840 is a light, moderate yellow. Relative luminance 0.283; OKLCH L 65.1% C 0.114 H 116.7°. Best body text is #000000 at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#8B9840
RGBrgb(139, 152, 64)
HSLhsl(69, 41%, 42%)
HSVhsv(69, 58%, 60%)
CMYKcmyk(8.6%, 0%, 57.9%, 40.4%)
CIE-LABlab(60.17, -17.65, 43.85)
CIE-LCHlch(60.17, 47.27, 111.93°)
OKLaboklab(65.06% -0.0512 0.1019)
OKLCHoklch(65.06% 0.114 116.7)
XYZxyz(22.8015, 28.3159, 9.1138)
Luminance0.2832 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B9840 #4D4098
analogous
#987940 #8B9840 #5F9840
triadic
#8B9840 #408B98 #98408B
tetradic
#8B9840 #409879 #4D4098 #98405F
square
#8B9840 #409879 #4D4098 #98405F
split-complementary
#8B9840 #405F98 #794098
monochromatic
#3C421C #646D2E #8B9840 #ACBA5B #C2CC86

Accessibility & contrast

On white

3.15
#8B9840 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.66
#8B9840 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B9840
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B9840#FFFFFF#000000##000000
##8B98401.003.156.666.66
#FFFFFF3.151.0021.0021.00
#0000006.6621.001.001.00
##0000006.6621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8b9840;
/* rgb */ color: rgb(139, 152, 64);
/* oklch */ color: oklch(65.1% 0.114 116.7);
Tailwind
colors: {
  custom: {
    50: '#afb678',
    500: '#8b9840',
    950: '#000000',
  },
}
SCSS
$custom: #8b9840;
$custom-light: #afb678;
$custom-dark: #000000;
JSON
{
  "hex": "#8b9840",
  "rgb": {
    "r": 139,
    "g": 152,
    "b": 64
  },
  "hsl": {
    "h": 68.864,
    "s": 40.741,
    "l": 42.353
  },
  "oklch": {
    "l": 0.65056,
    "c": 0.11401,
    "h": 116.7
  },
  "luminance": 0.28316
}

Semantic roles & 50–950 ramp

primary
#8B9840
secondary
#867DB7
accent
#57D169
background
#FBFBF7
surface
#F6F6ED
border
#D0D0C8
text
#111109
muted
#80807B

Preview Lab

Preview with #8B9840

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

Preview Lab → · Contrast checker → · Palette generator →

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