#6C871F#6C871F

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

Color values

HEX#6C871F
RGBrgb(108, 135, 31)
HSLhsl(76, 63%, 33%)
HSVhsv(76, 77%, 53%)
CMYKcmyk(20%, 0%, 77%, 47.1%)
CIE-LABlab(52.53, -24.59, 49.10)
CIE-LCHlch(52.53, 54.92, 116.60°)
OKLaboklab(58.24% -0.0718 0.1088)
OKLCHoklch(58.24% 0.13 123.5)
XYZxyz(15.0958, 20.6149, 4.4798)
Luminance0.2061 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C871F #3A1F87
analogous
#876E1F #6C871F #38871F
triadic
#6C871F #1F6C87 #871F6C
tetradic
#6C871F #1F876E #3A1F87 #871F38
square
#6C871F #1F876E #3A1F87 #871F38
split-complementary
#6C871F #1F3887 #6E1F87
monochromatic
#1C2308 #445514 #6C871F #94B92A #B2D64B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##6C871F#FFFFFF#000000##000000
##6C871F1.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)
#8F7E07
Deuteranopia (green-blind)
#8C7D29
Tritanopia (blue-blind)
#728073
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #6c871f;
/* rgb */ color: rgb(108, 135, 31);
/* oklch */ color: oklch(58.2% 0.130 123.5);
Tailwind
colors: {
  custom: {
    50: '#99aa63',
    500: '#6c871f',
    950: '#000000',
  },
}
SCSS
$custom: #6c871f;
$custom-light: #99aa63;
$custom-dark: #000000;
JSON
{
  "hex": "#6c871f",
  "rgb": {
    "r": 108,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 75.577,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.58237,
    "c": 0.13034,
    "h": 123.5
  },
  "luminance": 0.20615
}

Semantic roles & 50–950 ramp

primary
#6C871F
secondary
#664AB8
accent
#42E66D
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0E1006
muted
#7E7F7A

Preview Lab

Preview with #6C871F

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

Preview Lab → · Contrast checker → · Palette generator →

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