#6D8A1F#6D8A1F

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

Color values

HEX#6D8A1F
RGBrgb(109, 138, 31)
HSLhsl(76, 63%, 33%)
HSVhsv(76, 78%, 54%)
CMYKcmyk(21%, 0%, 77.5%, 45.9%)
CIE-LABlab(53.52, -25.66, 50.07)
CIE-LCHlch(53.52, 56.26, 117.13°)
OKLaboklab(59.06% -0.0748 0.1108)
OKLCHoklch(59.06% 0.134 124)
XYZxyz(15.6426, 21.5270, 4.6271)
Luminance0.2153 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D8A1F #3C1F8A
analogous
#8A711F #6D8A1F #378A1F
triadic
#6D8A1F #1F6D8A #8A1F6D
tetradic
#6D8A1F #1F8A71 #3C1F8A #8A1F37
square
#6D8A1F #1F8A71 #3C1F8A #8A1F37
split-complementary
#6D8A1F #1F378A #711F8A
monochromatic
#1E2609 #465814 #6D8A1F #94BC2A #B1D74C

Accessibility & contrast

On white

3.96
#6D8A1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#6D8A1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #6D8A1F
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D8A1F#FFFFFF#000000##000000
##6D8A1F1.003.965.315.31
#FFFFFF3.961.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6d8a1f;
/* rgb */ color: rgb(109, 138, 31);
/* oklch */ color: oklch(59.1% 0.134 124.0);
Tailwind
colors: {
  custom: {
    50: '#9aac64',
    500: '#6d8a1f',
    950: '#000000',
  },
}
SCSS
$custom: #6d8a1f;
$custom-light: #9aac64;
$custom-dark: #000000;
JSON
{
  "hex": "#6d8a1f",
  "rgb": {
    "r": 109,
    "g": 138,
    "b": 31
  },
  "hsl": {
    "h": 76.262,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.59061,
    "c": 0.13366,
    "h": 124
  },
  "luminance": 0.21527
}

Semantic roles & 50–950 ramp

primary
#6D8A1F
secondary
#694BBA
accent
#41E66E
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0E1006
muted
#7E7F7A

Preview Lab

Preview with #6D8A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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