#6C871B#6C871B

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

Color values

HEX#6C871B
RGBrgb(108, 135, 27)
HSLhsl(75, 67%, 32%)
HSVhsv(75, 80%, 53%)
CMYKcmyk(20%, 0%, 80%, 47.1%)
CIE-LABlab(52.50, -24.79, 50.43)
CIE-LCHlch(52.50, 56.20, 116.18°)
OKLaboklab(58.21% -0.0727 0.1109)
OKLCHoklch(58.21% 0.133 123.3)
XYZxyz(15.0463, 20.5951, 4.2193)
Luminance0.2059 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C871B #361B87
analogous
#876C1B #6C871B #36871B
triadic
#6C871B #1B6C87 #871B6C
tetradic
#6C871B #1B876C #361B87 #871B36
square
#6C871B #1B876C #361B87 #871B36
split-complementary
#6C871B #1B3687 #6C1B87
monochromatic
#1A2107 #435411 #6C871B #95BA25 #B4D943

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #6c871b;
/* rgb */ color: rgb(108, 135, 27);
/* oklch */ color: oklch(58.2% 0.133 123.3);
Tailwind
colors: {
  custom: {
    50: '#99aa61',
    500: '#6c871b',
    950: '#000000',
  },
}
SCSS
$custom: #6c871b;
$custom-light: #99aa61;
$custom-dark: #000000;
JSON
{
  "hex": "#6c871b",
  "rgb": {
    "r": 108,
    "g": 135,
    "b": 27
  },
  "hsl": {
    "h": 75,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.58213,
    "c": 0.13258,
    "h": 123.3
  },
  "luminance": 0.20595
}

Semantic roles & 50–950 ramp

primary
#6C871B
secondary
#6144BA
accent
#3EEA69
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0E1005
muted
#7E7F7A

Preview Lab

Preview with #6C871B

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

Preview Lab → · Contrast checker → · Palette generator →

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