#6A8717#6A8717

#6A8717 is a mid, vivid yellow-green. Relative luminance 0.205; OKLCH L 58.0% C 0.136 H 124.0°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#6A8717
RGBrgb(106, 135, 23)
HSLhsl(76, 71%, 31%)
HSVhsv(76, 83%, 53%)
CMYKcmyk(21.5%, 0%, 83%, 47.1%)
CIE-LABlab(52.35, -25.83, 51.46)
CIE-LCHlch(52.35, 57.58, 116.65°)
OKLaboklab(58.04% -0.0757 0.1124)
OKLCHoklch(58.04% 0.136 124)
XYZxyz(14.7627, 20.4539, 3.9807)
Luminance0.2045 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A8717 #341787
analogous
#876C17 #6A8717 #328717
triadic
#6A8717 #176A87 #87176A
tetradic
#6A8717 #17876C #341787 #871732
square
#6A8717 #17876C #341787 #871732
split-complementary
#6A8717 #173287 #6C1787
monochromatic
#181E05 #41530E #6A8717 #93BB20 #B3DE3B

Accessibility & contrast

On white

4.13
#6A8717 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#6A8717 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #6A8717
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A8717#FFFFFF#000000##000000
##6A87171.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E00
Deuteranopia (green-blind)
#8B7D23
Tritanopia (blue-blind)
#708073
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #6a8717;
/* rgb */ color: rgb(106, 135, 23);
/* oklch */ color: oklch(58.0% 0.136 124.0);
Tailwind
colors: {
  custom: {
    50: '#98aa60',
    500: '#6a8717',
    950: '#000000',
  },
}
SCSS
$custom: #6a8717;
$custom-light: #98aa60;
$custom-dark: #000000;
JSON
{
  "hex": "#6a8717",
  "rgb": {
    "r": 106,
    "g": 135,
    "b": 23
  },
  "hsl": {
    "h": 75.536,
    "s": 70.886,
    "l": 30.98
  },
  "oklch": {
    "l": 0.58044,
    "c": 0.13553,
    "h": 124
  },
  "luminance": 0.20454
}

Semantic roles & 50–950 ramp

primary
#6A8717
secondary
#5F3FBB
accent
#3AEE69
background
#F9FAF5
surface
#F2F4EA
border
#CCCEC6
text
#0E1005
muted
#7E7F79

Preview Lab

Preview with #6A8717

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

Preview Lab → · Contrast checker → · Palette generator →

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