#6B8D17#6B8D17

#6B8D17 is a mid, vivid yellow-green. Relative luminance 0.222; OKLCH L 59.6% C 0.142 H 125.4°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#6B8D17
RGBrgb(107, 141, 23)
HSLhsl(77, 72%, 32%)
HSVhsv(77, 84%, 55%)
CMYKcmyk(24.1%, 0%, 83.7%, 44.7%)
CIE-LABlab(54.28, -28.33, 53.20)
CIE-LCHlch(54.28, 60.27, 118.03°)
OKLaboklab(59.63% -0.0826 0.1161)
OKLCHoklch(59.63% 0.142 125.4)
XYZxyz(15.7431, 22.2372, 4.2732)
Luminance0.2224 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B8D17 #39178D
analogous
#8D7417 #6B8D17 #308D17
triadic
#6B8D17 #176B8D #8D176B
tetradic
#6B8D17 #178D74 #39178D #8D1730
square
#6B8D17 #178D74 #39178D #8D1730
split-complementary
#6B8D17 #17308D #74178D
monochromatic
#1B2406 #43580E #6B8D17 #93C220 #B1E03F

Accessibility & contrast

On white

3.86
#6B8D17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.45
#6B8D17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #6B8D17
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B8D17#FFFFFF#000000##000000
##6B8D171.003.865.455.45
#FFFFFF3.861.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#958300
Deuteranopia (green-blind)
#918124
Tritanopia (blue-blind)
#708678
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #6b8d17;
/* rgb */ color: rgb(107, 141, 23);
/* oklch */ color: oklch(59.6% 0.142 125.4);
Tailwind
colors: {
  custom: {
    50: '#99ae61',
    500: '#6b8d17',
    950: '#000000',
  },
}
SCSS
$custom: #6b8d17;
$custom-light: #99ae61;
$custom-dark: #000000;
JSON
{
  "hex": "#6b8d17",
  "rgb": {
    "r": 107,
    "g": 141,
    "b": 23
  },
  "hsl": {
    "h": 77.288,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.59626,
    "c": 0.14245,
    "h": 125.4
  },
  "luminance": 0.22237
}

Semantic roles & 50–950 ramp

primary
#6B8D17
secondary
#6540C0
accent
#39EF6D
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0E1005
muted
#7E7F7A

Preview Lab

Preview with #6B8D17

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

Preview Lab → · Contrast checker → · Palette generator →

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