#6C8B1F#6C8B1F

#6C8B1F is a mid, vivid yellow-green. Relative luminance 0.218; OKLCH L 59.2% C 0.135 H 124.8°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#6C8B1F
RGBrgb(108, 139, 31)
HSLhsl(77, 64%, 33%)
HSVhsv(77, 78%, 55%)
CMYKcmyk(22.3%, 0%, 77.7%, 45.5%)
CIE-LABlab(53.76, -26.57, 50.28)
CIE-LCHlch(53.76, 56.86, 117.86°)
OKLaboklab(59.24% -0.0772 0.1112)
OKLCHoklch(59.24% 0.135 124.8)
XYZxyz(15.6644, 21.7521, 4.6694)
Luminance0.2175 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C8B1F #3E1F8B
analogous
#8B741F #6C8B1F #368B1F
triadic
#6C8B1F #1F6C8B #8B1F6C
tetradic
#6C8B1F #1F8B74 #3E1F8B #8B1F36
square
#6C8B1F #1F8B74 #3E1F8B #8B1F36
split-complementary
#6C8B1F #1F368B #741F8B
monochromatic
#1E2709 #455914 #6C8B1F #93BD2A #B0D74D

Accessibility & contrast

On white

3.92
#6C8B1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#6C8B1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #6C8B1F
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C8B1F#FFFFFF#000000##000000
##6C8B1F1.003.925.355.35
#FFFFFF3.921.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#938205
Deuteranopia (green-blind)
#8F8029
Tritanopia (blue-blind)
#718477
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #6c8b1f;
/* rgb */ color: rgb(108, 139, 31);
/* oklch */ color: oklch(59.2% 0.135 124.8);
Tailwind
colors: {
  custom: {
    50: '#99ad64',
    500: '#6c8b1f',
    950: '#000000',
  },
}
SCSS
$custom: #6c8b1f;
$custom-light: #99ad64;
$custom-dark: #000000;
JSON
{
  "hex": "#6c8b1f",
  "rgb": {
    "r": 108,
    "g": 139,
    "b": 31
  },
  "hsl": {
    "h": 77.222,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.59239,
    "c": 0.13542,
    "h": 124.8
  },
  "luminance": 0.21752
}

Semantic roles & 50–950 ramp

primary
#6C8B1F
secondary
#6B4CBA
accent
#41E771
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0E1006
muted
#7E7F7A

Preview Lab

Preview with #6C8B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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