#6B8A1F#6B8A1F

#6B8A1F is a mid, vivid yellow-green. Relative luminance 0.214; OKLCH L 58.9% C 0.135 H 124.9°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#6B8A1F
RGBrgb(107, 138, 31)
HSLhsl(77, 63%, 33%)
HSVhsv(77, 78%, 54%)
CMYKcmyk(22.5%, 0%, 77.5%, 45.9%)
CIE-LABlab(53.39, -26.50, 49.90)
CIE-LCHlch(53.39, 56.50, 117.97°)
OKLaboklab(58.92% -0.077 0.1105)
OKLCHoklch(58.92% 0.135 124.9)
XYZxyz(15.3993, 21.4015, 4.6157)
Luminance0.2140 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B8A1F #3E1F8A
analogous
#8A731F #6B8A1F #358A1F
triadic
#6B8A1F #1F6B8A #8A1F6B
tetradic
#6B8A1F #1F8A73 #3E1F8A #8A1F35
square
#6B8A1F #1F8A73 #3E1F8A #8A1F35
split-complementary
#6B8A1F #1F358A #731F8A
monochromatic
#1E2609 #445814 #6B8A1F #92BC2A #AFD74C

Accessibility & contrast

On white

3.98
#6B8A1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.28
#6B8A1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #6B8A1F
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B8A1F#FFFFFF#000000##000000
##6B8A1F1.003.985.285.28
#FFFFFF3.981.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#928105
Deuteranopia (green-blind)
#8E7F29
Tritanopia (blue-blind)
#708376
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #6b8a1f;
/* rgb */ color: rgb(107, 138, 31);
/* oklch */ color: oklch(58.9% 0.135 124.9);
Tailwind
colors: {
  custom: {
    50: '#99ac64',
    500: '#6b8a1f',
    950: '#000000',
  },
}
SCSS
$custom: #6b8a1f;
$custom-light: #99ac64;
$custom-dark: #000000;
JSON
{
  "hex": "#6b8a1f",
  "rgb": {
    "r": 107,
    "g": 138,
    "b": 31
  },
  "hsl": {
    "h": 77.383,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.58916,
    "c": 0.13464,
    "h": 124.9
  },
  "luminance": 0.21402
}

Semantic roles & 50–950 ramp

primary
#6B8A1F
secondary
#6B4BBA
accent
#41E671
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0E1006
muted
#7E7F7A

Preview Lab

Preview with #6B8A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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