#6C871D#6C871D

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

Color values

HEX#6C871D
RGBrgb(108, 135, 29)
HSLhsl(75, 65%, 32%)
HSVhsv(75, 79%, 53%)
CMYKcmyk(20%, 0%, 78.5%, 47.1%)
CIE-LABlab(52.51, -24.70, 49.78)
CIE-LCHlch(52.51, 55.57, 116.39°)
OKLaboklab(58.23% -0.0723 0.1098)
OKLCHoklch(58.23% 0.131 123.4)
XYZxyz(15.0703, 20.6047, 4.3453)
Luminance0.2061 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C871D #381D87
analogous
#876D1D #6C871D #37871D
triadic
#6C871D #1D6C87 #871D6C
tetradic
#6C871D #1D876D #381D87 #871D37
square
#6C871D #1D876D #381D87 #871D37
split-complementary
#6C871D #1D3787 #6D1D87
monochromatic
#1B2207 #445512 #6C871D #94B928 #B3D747

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##6C871D#FFFFFF#000000##000000
##6C871D1.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)
#8F7E02
Deuteranopia (green-blind)
#8C7D27
Tritanopia (blue-blind)
#728073
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #6c871d;
/* rgb */ color: rgb(108, 135, 29);
/* oklch */ color: oklch(58.2% 0.131 123.4);
Tailwind
colors: {
  custom: {
    50: '#99aa62',
    500: '#6c871d',
    950: '#000000',
  },
}
SCSS
$custom: #6c871d;
$custom-light: #99aa62;
$custom-dark: #000000;
JSON
{
  "hex": "#6c871d",
  "rgb": {
    "r": 108,
    "g": 135,
    "b": 29
  },
  "hsl": {
    "h": 75.283,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.58225,
    "c": 0.13149,
    "h": 123.4
  },
  "luminance": 0.20605
}

Semantic roles & 50–950 ramp

primary
#6C871D
secondary
#6446B9
accent
#40E86B
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0E1006
muted
#7E7F7A

Preview Lab

Preview with #6C871D

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

Preview Lab → · Contrast checker → · Palette generator →

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