#6B8517#6B8517

#6B8517 is a mid, vivid yellow-green. Relative luminance 0.200; OKLCH L 57.6% C 0.133 H 122.8°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#6B8517
RGBrgb(107, 133, 23)
HSLhsl(74, 71%, 31%)
HSVhsv(74, 83%, 52%)
CMYKcmyk(19.5%, 0%, 82.7%, 47.8%)
CIE-LABlab(51.79, -24.41, 50.99)
CIE-LCHlch(51.79, 56.53, 115.58°)
OKLaboklab(57.62% -0.0719 0.1114)
OKLCHoklch(57.62% 0.133 122.8)
XYZxyz(14.6058, 19.9626, 3.8941)
Luminance0.1996 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B8517 #311785
analogous
#856817 #6B8517 #348517
triadic
#6B8517 #176B85 #85176B
tetradic
#6B8517 #178568 #311785 #851734
square
#6B8517 #178568 #311785 #851734
split-complementary
#6B8517 #173485 #681785
monochromatic
#171D05 #41510E #6B8517 #95B920 #B6DD3A

Accessibility & contrast

On white

4.21
#6B8517 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#6B8517 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #6B8517
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B8517#FFFFFF#000000##000000
##6B85171.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C00
Deuteranopia (green-blind)
#8A7B23
Tritanopia (blue-blind)
#717E71
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #6b8517;
/* rgb */ color: rgb(107, 133, 23);
/* oklch */ color: oklch(57.6% 0.133 122.8);
Tailwind
colors: {
  custom: {
    50: '#99a85f',
    500: '#6b8517',
    950: '#000000',
  },
}
SCSS
$custom: #6b8517;
$custom-light: #99a85f;
$custom-dark: #000000;
JSON
{
  "hex": "#6b8517",
  "rgb": {
    "r": 107,
    "g": 133,
    "b": 23
  },
  "hsl": {
    "h": 74.182,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.57615,
    "c": 0.13258,
    "h": 122.8
  },
  "luminance": 0.19963
}

Semantic roles & 50–950 ramp

primary
#6B8517
secondary
#5C3FB9
accent
#3BED65
background
#F9FAF5
surface
#F2F4EA
border
#CCCEC6
text
#0E0F05
muted
#7E7F79

Preview Lab

Preview with #6B8517

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

Preview Lab → · Contrast checker → · Palette generator →

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