#6C871A#6C871A

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

Color values

HEX#6C871A
RGBrgb(108, 135, 26)
HSLhsl(75, 68%, 32%)
HSVhsv(75, 81%, 53%)
CMYKcmyk(20%, 0%, 80.7%, 47.1%)
CIE-LABlab(52.50, -24.84, 50.74)
CIE-LCHlch(52.50, 56.50, 116.08°)
OKLaboklab(58.21% -0.0729 0.1113)
OKLCHoklch(58.21% 0.133 123.2)
XYZxyz(15.0350, 20.5906, 4.1594)
Luminance0.2059 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C871A #351A87
analogous
#876C1A #6C871A #36871A
triadic
#6C871A #1A6C87 #871A6C
tetradic
#6C871A #1A876C #351A87 #871A36
square
#6C871A #1A876C #351A87 #871A36
split-complementary
#6C871A #1A3687 #6C1A87
monochromatic
#1A2006 #435410 #6C871A #95BA24 #B4DA41

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##6C871A#FFFFFF#000000##000000
##6C871A1.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)
#8C7D25
Tritanopia (blue-blind)
#728073
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #6c871a;
/* rgb */ color: rgb(108, 135, 26);
/* oklch */ color: oklch(58.2% 0.133 123.2);
Tailwind
colors: {
  custom: {
    50: '#9aaa61',
    500: '#6c871a',
    950: '#000000',
  },
}
SCSS
$custom: #6c871a;
$custom-light: #9aaa61;
$custom-dark: #000000;
JSON
{
  "hex": "#6c871a",
  "rgb": {
    "r": 108,
    "g": 135,
    "b": 26
  },
  "hsl": {
    "h": 74.862,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.58207,
    "c": 0.1331,
    "h": 123.2
  },
  "luminance": 0.20591
}

Semantic roles & 50–950 ramp

primary
#6C871A
secondary
#6042BA
accent
#3DEB68
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0E1005
muted
#7E7F7A

Preview Lab

Preview with #6C871A

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

Preview Lab → · Contrast checker → · Palette generator →

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