#337828#337828

#337828 is a mid, vivid green. Relative luminance 0.143; OKLCH L 51.0% C 0.134 H 141.0°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#337828
RGBrgb(51, 120, 40)
HSLhsl(112, 50%, 31%)
HSVhsv(112, 67%, 47%)
CMYKcmyk(57.5%, 0%, 66.7%, 52.9%)
CIE-LABlab(44.64, -38.12, 36.35)
CIE-LCHlch(44.64, 52.67, 136.36°)
OKLaboklab(51.01% -0.1042 0.0843)
OKLCHoklch(51.01% 0.134 141)
XYZxyz(8.4643, 14.2892, 4.3191)
Luminance0.1429 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#337828 #6D2878
analogous
#5B7828 #337828 #287845
triadic
#337828 #283378 #782833
tetradic
#337828 #285B78 #6D2878 #784528
square
#337828 #285B78 #6D2878 #784528
split-complementary
#337828 #452878 #78285B
monochromatic
#0C1C09 #1F4A19 #337828 #47A637 #64C654

Accessibility & contrast

On white

5.44
#337828 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#337828 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #337828
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##337828#FFFFFF#000000##FFFFFF
##3378281.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6D1E
Deuteranopia (green-blind)
#72672F
Tritanopia (blue-blind)
#2A7467
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #337828;
/* rgb */ color: rgb(51, 120, 40);
/* oklch */ color: oklch(51.0% 0.134 141.0);
Tailwind
colors: {
  custom: {
    50: '#72a066',
    500: '#337828',
    950: '#000000',
  },
}
SCSS
$custom: #337828;
$custom-light: #72a066;
$custom-dark: #000000;
JSON
{
  "hex": "#337828",
  "rgb": {
    "r": 51,
    "g": 120,
    "b": 40
  },
  "hsl": {
    "h": 111.75,
    "s": 50,
    "l": 31.373
  },
  "oklch": {
    "l": 0.51007,
    "c": 0.13403,
    "h": 141
  },
  "luminance": 0.1429
}

Semantic roles & 50–950 ramp

primary
#337828
secondary
#9E52AA
accent
#4EDAC6
background
#F7F9F6
surface
#EDF2EB
border
#C8CCC6
text
#080F06
muted
#7B7E7A

Preview Lab

Preview with #337828

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

Preview Lab → · Contrast checker → · Palette generator →

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