#6C8A1F#6C8A1F

#6C8A1F is a mid, vivid yellow-green. Relative luminance 0.215; OKLCH L 59.0% C 0.134 H 124.5°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#6C8A1F
RGBrgb(108, 138, 31)
HSLhsl(77, 63%, 33%)
HSVhsv(77, 78%, 54%)
CMYKcmyk(21.7%, 0%, 77.5%, 45.9%)
CIE-LABlab(53.45, -26.08, 49.98)
CIE-LCHlch(53.45, 56.38, 117.55°)
OKLaboklab(58.99% -0.0759 0.1106)
OKLCHoklch(58.99% 0.134 124.5)
XYZxyz(15.5203, 21.4639, 4.6213)
Luminance0.2146 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C8A1F #3D1F8A
analogous
#8A721F #6C8A1F #378A1F
triadic
#6C8A1F #1F6C8A #8A1F6C
tetradic
#6C8A1F #1F8A72 #3D1F8A #8A1F37
square
#6C8A1F #1F8A72 #3D1F8A #8A1F37
split-complementary
#6C8A1F #1F378A #721F8A
monochromatic
#1E2609 #455814 #6C8A1F #93BC2A #B0D74C

Accessibility & contrast

On white

3.97
#6C8A1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#6C8A1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #6C8A1F
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C8A1F#FFFFFF#000000##000000
##6C8A1F1.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#928105
Deuteranopia (green-blind)
#8E7F29
Tritanopia (blue-blind)
#718376
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #6c8a1f;
/* rgb */ color: rgb(108, 138, 31);
/* oklch */ color: oklch(59.0% 0.134 124.5);
Tailwind
colors: {
  custom: {
    50: '#99ac64',
    500: '#6c8a1f',
    950: '#000000',
  },
}
SCSS
$custom: #6c8a1f;
$custom-light: #99ac64;
$custom-dark: #000000;
JSON
{
  "hex": "#6c8a1f",
  "rgb": {
    "r": 108,
    "g": 138,
    "b": 31
  },
  "hsl": {
    "h": 76.822,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.58988,
    "c": 0.13414,
    "h": 124.5
  },
  "luminance": 0.21464
}

Semantic roles & 50–950 ramp

primary
#6C8A1F
secondary
#6A4BBA
accent
#41E670
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0E1006
muted
#7E7F7A

Preview Lab

Preview with #6C8A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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