#337F21#337F21

#337F21 is a mid, vivid green. Relative luminance 0.160; OKLCH L 52.9% C 0.148 H 140.2°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#337F21
RGBrgb(51, 127, 33)
HSLhsl(109, 59%, 31%)
HSVhsv(109, 74%, 50%)
CMYKcmyk(59.8%, 0%, 74%, 50.2%)
CIE-LABlab(46.96, -41.58, 41.86)
CIE-LCHlch(46.96, 59.00, 134.81°)
OKLaboklab(52.9% -0.114 0.095)
OKLCHoklch(52.9% 0.148 140.2)
XYZxyz(9.2287, 15.9915, 4.0389)
Luminance0.1599 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#337F21 #6D217F
analogous
#627F21 #337F21 #217F3E
triadic
#337F21 #21337F #7F2133
tetradic
#337F21 #21627F #6D217F #7F3E21
square
#337F21 #21627F #6D217F #7F3E21
split-complementary
#337F21 #3E217F #7F2162
monochromatic
#0C1E08 #1F4E14 #337F21 #47B02E #64D04A

Accessibility & contrast

On white

5.00
#337F21 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#337F21 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #337F21
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##337F21#FFFFFF#000000##FFFFFF
##337F211.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837311
Deuteranopia (green-blind)
#796D2A
Tritanopia (blue-blind)
#297B6D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #337f21;
/* rgb */ color: rgb(51, 127, 33);
/* oklch */ color: oklch(52.9% 0.148 140.2);
Tailwind
colors: {
  custom: {
    50: '#74a562',
    500: '#337f21',
    950: '#000000',
  },
}
SCSS
$custom: #337f21;
$custom-light: #74a562;
$custom-dark: #000000;
JSON
{
  "hex": "#337f21",
  "rgb": {
    "r": 51,
    "g": 127,
    "b": 33
  },
  "hsl": {
    "h": 108.511,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.52901,
    "c": 0.14839,
    "h": 140.2
  },
  "luminance": 0.15992
}

Semantic roles & 50–950 ramp

primary
#337F21
secondary
#9E4AB2
accent
#46E2C4
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#090F05
muted
#7B7F7A

Preview Lab

Preview with #337F21

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

Preview Lab → · Contrast checker → · Palette generator →

#337F21 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva