#6C871C#6C871C

#6C871C is a mid, vivid yellow-green. Relative luminance 0.206; OKLCH L 58.2% C 0.132 H 123.3°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#6C871C
RGBrgb(108, 135, 28)
HSLhsl(75, 66%, 32%)
HSVhsv(75, 79%, 53%)
CMYKcmyk(20%, 0%, 79.3%, 47.1%)
CIE-LABlab(52.51, -24.75, 50.11)
CIE-LCHlch(52.51, 55.89, 116.28°)
OKLaboklab(58.22% -0.0725 0.1104)
OKLCHoklch(58.22% 0.132 123.3)
XYZxyz(15.0581, 20.5998, 4.2812)
Luminance0.2060 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C871C #371C87
analogous
#876D1C #6C871C #37871C
triadic
#6C871C #1C6C87 #871C6C
tetradic
#6C871C #1C876D #371C87 #871C37
square
#6C871C #1C876D #371C87 #871C37
split-complementary
#6C871C #1C3787 #6D1C87
monochromatic
#1B2207 #435411 #6C871C #95BA27 #B3D845

Accessibility & contrast

On white

4.10
#6C871C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#6C871C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #6C871C
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C871C#FFFFFF#000000##000000
##6C871C1.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6c871c;
/* rgb */ color: rgb(108, 135, 28);
/* oklch */ color: oklch(58.2% 0.132 123.3);
Tailwind
colors: {
  custom: {
    50: '#99aa62',
    500: '#6c871c',
    950: '#000000',
  },
}
SCSS
$custom: #6c871c;
$custom-light: #99aa62;
$custom-dark: #000000;
JSON
{
  "hex": "#6c871c",
  "rgb": {
    "r": 108,
    "g": 135,
    "b": 28
  },
  "hsl": {
    "h": 75.14,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.58218,
    "c": 0.13205,
    "h": 123.3
  },
  "luminance": 0.206
}

Semantic roles & 50–950 ramp

primary
#6C871C
secondary
#6245BA
accent
#3FE96A
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0E1005
muted
#7E7F7A

Preview Lab

Preview with #6C871C

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

Preview Lab → · Contrast checker → · Palette generator →

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