#6A8817#6A8817

#6A8817 is a mid, vivid yellow-green. Relative luminance 0.207; OKLCH L 58.3% C 0.137 H 124.3°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#6A8817
RGBrgb(106, 136, 23)
HSLhsl(76, 71%, 31%)
HSVhsv(76, 83%, 53%)
CMYKcmyk(22.1%, 0%, 83.1%, 46.7%)
CIE-LABlab(52.66, -26.32, 51.74)
CIE-LCHlch(52.66, 58.05, 116.96°)
OKLaboklab(58.3% -0.0771 0.113)
OKLCHoklch(58.3% 0.137 124.3)
XYZxyz(14.9028, 20.7342, 4.0274)
Luminance0.2073 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A8817 #351788
analogous
#886D17 #6A8817 #318817
triadic
#6A8817 #176A88 #88176A
tetradic
#6A8817 #17886D #351788 #881731
square
#6A8817 #17886D #351788 #881731
split-complementary
#6A8817 #173188 #6D1788
monochromatic
#181F05 #41540E #6A8817 #93BC20 #B3DE3B

Accessibility & contrast

On white

4.08
#6A8817 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#6A8817 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #6A8817
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A8817#FFFFFF#000000##000000
##6A88171.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6a8817;
/* rgb */ color: rgb(106, 136, 23);
/* oklch */ color: oklch(58.3% 0.137 124.3);
Tailwind
colors: {
  custom: {
    50: '#98aa60',
    500: '#6a8817',
    950: '#000000',
  },
}
SCSS
$custom: #6a8817;
$custom-light: #98aa60;
$custom-dark: #000000;
JSON
{
  "hex": "#6a8817",
  "rgb": {
    "r": 106,
    "g": 136,
    "b": 23
  },
  "hsl": {
    "h": 75.929,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.58296,
    "c": 0.13677,
    "h": 124.3
  },
  "luminance": 0.20734
}

Semantic roles & 50–950 ramp

primary
#6A8817
secondary
#603FBC
accent
#3AEE6A
background
#F9FAF5
surface
#F2F4EA
border
#CCCEC6
text
#0E1005
muted
#7E7F79

Preview Lab

Preview with #6A8817

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

Preview Lab → · Contrast checker → · Palette generator →

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