#6D8817#6D8817

#6D8817 is a mid, vivid yellow-green. Relative luminance 0.209; OKLCH L 58.5% C 0.135 H 123.0°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#6D8817
RGBrgb(109, 136, 23)
HSLhsl(74, 71%, 31%)
HSVhsv(74, 83%, 53%)
CMYKcmyk(19.9%, 0%, 83.1%, 46.7%)
CIE-LABlab(52.86, -25.04, 52.00)
CIE-LCHlch(52.86, 57.71, 115.71°)
OKLaboklab(58.51% -0.0737 0.1135)
OKLCHoklch(58.51% 0.135 123)
XYZxyz(15.2657, 20.9213, 4.0444)
Luminance0.2092 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D8817 #321788
analogous
#886A17 #6D8817 #348817
triadic
#6D8817 #176D88 #88176D
tetradic
#6D8817 #17886A #321788 #881734
square
#6D8817 #17886A #321788 #881734
split-complementary
#6D8817 #173488 #6A1788
monochromatic
#191F05 #43540E #6D8817 #97BC20 #B7DE3B

Accessibility & contrast

On white

4.05
#6D8817 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#6D8817 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #6D8817
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D8817#FFFFFF#000000##000000
##6D88171.004.055.185.18
#FFFFFF4.051.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F00
Deuteranopia (green-blind)
#8D7E23
Tritanopia (blue-blind)
#738174
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #6d8817;
/* rgb */ color: rgb(109, 136, 23);
/* oklch */ color: oklch(58.5% 0.135 123.0);
Tailwind
colors: {
  custom: {
    50: '#9aaa60',
    500: '#6d8817',
    950: '#000000',
  },
}
SCSS
$custom: #6d8817;
$custom-light: #9aaa60;
$custom-dark: #000000;
JSON
{
  "hex": "#6d8817",
  "rgb": {
    "r": 109,
    "g": 136,
    "b": 23
  },
  "hsl": {
    "h": 74.336,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.58515,
    "c": 0.13531,
    "h": 123
  },
  "luminance": 0.20921
}

Semantic roles & 50–950 ramp

primary
#6D8817
secondary
#5D3FBC
accent
#3AEE65
background
#F9FAF5
surface
#F2F4EA
border
#CCCEC6
text
#0E1005
muted
#7E7F79

Preview Lab

Preview with #6D8817

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

Preview Lab → · Contrast checker → · Palette generator →

#6D8817 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva