#6C8817#6C8817

#6C8817 is a mid, vivid yellow-green. Relative luminance 0.209; OKLCH L 58.4% C 0.136 H 123.5°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#6C8817
RGBrgb(108, 136, 23)
HSLhsl(75, 71%, 31%)
HSVhsv(75, 83%, 53%)
CMYKcmyk(20.6%, 0%, 83.1%, 46.7%)
CIE-LABlab(52.79, -25.47, 51.91)
CIE-LCHlch(52.79, 57.82, 116.13°)
OKLaboklab(58.44% -0.0748 0.1133)
OKLCHoklch(58.44% 0.136 123.5)
XYZxyz(15.1434, 20.8582, 4.0387)
Luminance0.2086 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C8817 #331788
analogous
#886B17 #6C8817 #338817
triadic
#6C8817 #176C88 #88176C
tetradic
#6C8817 #17886B #331788 #881733
square
#6C8817 #17886B #331788 #881733
split-complementary
#6C8817 #173388 #6B1788
monochromatic
#191F05 #42540E #6C8817 #96BC20 #B6DE3B

Accessibility & contrast

On white

4.06
#6C8817 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#6C8817 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #6C8817
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C8817#FFFFFF#000000##000000
##6C88171.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6c8817;
/* rgb */ color: rgb(108, 136, 23);
/* oklch */ color: oklch(58.4% 0.136 123.5);
Tailwind
colors: {
  custom: {
    50: '#9aaa60',
    500: '#6c8817',
    950: '#000000',
  },
}
SCSS
$custom: #6c8817;
$custom-light: #9aaa60;
$custom-dark: #000000;
JSON
{
  "hex": "#6c8817",
  "rgb": {
    "r": 108,
    "g": 136,
    "b": 23
  },
  "hsl": {
    "h": 74.867,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.58442,
    "c": 0.13579,
    "h": 123.5
  },
  "luminance": 0.20858
}

Semantic roles & 50–950 ramp

primary
#6C8817
secondary
#5E3FBC
accent
#3AEE67
background
#F9FAF5
surface
#F2F4EA
border
#CCCEC6
text
#0E1005
muted
#7E7F79

Preview Lab

Preview with #6C8817

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

Preview Lab → · Contrast checker → · Palette generator →

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