#6C8D1F#6C8D1F

#6C8D1F is a mid, vivid yellow-green. Relative luminance 0.223; OKLCH L 59.7% C 0.138 H 125.4°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#6C8D1F
RGBrgb(108, 141, 31)
HSLhsl(78, 64%, 34%)
HSVhsv(78, 78%, 55%)
CMYKcmyk(23.4%, 0%, 78%, 44.7%)
CIE-LABlab(54.38, -27.54, 50.86)
CIE-LCHlch(54.38, 57.84, 118.44°)
OKLaboklab(59.74% -0.0799 0.1125)
OKLCHoklch(59.74% 0.138 125.4)
XYZxyz(15.9567, 22.3366, 4.7668)
Luminance0.2234 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C8D1F #401F8D
analogous
#8D771F #6C8D1F #358D1F
triadic
#6C8D1F #1F6C8D #8D1F6C
tetradic
#6C8D1F #1F8D77 #401F8D #8D1F35
square
#6C8D1F #1F8D77 #401F8D #8D1F35
split-complementary
#6C8D1F #1F358D #771F8D
monochromatic
#1F2909 #465B14 #6C8D1F #92BF2A #AFD84E

Accessibility & contrast

On white

3.84
#6C8D1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.47
#6C8D1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #6C8D1F
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C8D1F#FFFFFF#000000##000000
##6C8D1F1.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#958303
Deuteranopia (green-blind)
#91822A
Tritanopia (blue-blind)
#718678
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #6c8d1f;
/* rgb */ color: rgb(108, 141, 31);
/* oklch */ color: oklch(59.7% 0.138 125.4);
Tailwind
colors: {
  custom: {
    50: '#9aae64',
    500: '#6c8d1f',
    950: '#000000',
  },
}
SCSS
$custom: #6c8d1f;
$custom-light: #9aae64;
$custom-dark: #000000;
JSON
{
  "hex": "#6c8d1f",
  "rgb": {
    "r": 108,
    "g": 141,
    "b": 31
  },
  "hsl": {
    "h": 78,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.5974,
    "c": 0.13796,
    "h": 125.4
  },
  "luminance": 0.22337
}

Semantic roles & 50–950 ramp

primary
#6C8D1F
secondary
#6E4DBB
accent
#41E773
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0E1006
muted
#7E7F7A

Preview Lab

Preview with #6C8D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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