#337217#337217

#337217 is a mid, vivid green. Relative luminance 0.128; OKLCH L 49.2% C 0.138 H 138.1°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#337217
RGBrgb(51, 114, 23)
HSLhsl(102, 66%, 27%)
HSVhsv(102, 80%, 45%)
CMYKcmyk(55.3%, 0%, 79.8%, 55.3%)
CIE-LABlab(42.46, -37.17, 41.18)
CIE-LCHlch(42.46, 55.47, 132.07°)
OKLaboklab(49.16% -0.1028 0.0921)
OKLCHoklch(49.16% 0.138 138.1)
XYZxyz(7.5369, 12.7997, 2.8839)
Luminance0.1280 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#337217 #561772
analogous
#617217 #337217 #177228
triadic
#337217 #173372 #721733
tetradic
#337217 #176172 #561772 #722817
square
#337217 #176172 #561772 #722817
split-complementary
#337217 #281772 #721761
monochromatic
#0B1905 #1C3F0D #337217 #4AA521 #62D52E

Accessibility & contrast

On white

5.90
#337217 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#337217 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #337217
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##337217#FFFFFF#000000##FFFFFF
##3372171.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766703
Deuteranopia (green-blind)
#6E6221
Tritanopia (blue-blind)
#2E6E61
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #337217;
/* rgb */ color: rgb(51, 114, 23);
/* oklch */ color: oklch(49.2% 0.138 138.1);
Tailwind
colors: {
  custom: {
    50: '#729b5c',
    500: '#337217',
    950: '#000000',
  },
}
SCSS
$custom: #337217;
$custom-light: #729b5c;
$custom-dark: #000000;
JSON
{
  "hex": "#337217",
  "rgb": {
    "r": 51,
    "g": 114,
    "b": 23
  },
  "hsl": {
    "h": 101.538,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.49164,
    "c": 0.13797,
    "h": 138.1
  },
  "luminance": 0.128
}

Semantic roles & 50–950 ramp

primary
#337217
secondary
#873DA8
accent
#3EE9B5
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #337217

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

Preview Lab → · Contrast checker → · Palette generator →

#337217 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva