#337E21#337E21

#337E21 is a mid, vivid green. Relative luminance 0.157; OKLCH L 52.6% C 0.147 H 140.2°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#337E21
RGBrgb(51, 126, 33)
HSLhsl(108, 58%, 31%)
HSVhsv(108, 74%, 49%)
CMYKcmyk(59.5%, 0%, 73.8%, 50.6%)
CIE-LABlab(46.62, -41.19, 41.51)
CIE-LCHlch(46.62, 58.48, 134.78°)
OKLaboklab(52.62% -0.113 0.0942)
OKLCHoklch(52.62% 0.147 140.2)
XYZxyz(9.1002, 15.7345, 3.9961)
Luminance0.1573 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#337E21 #6C217E
analogous
#617E21 #337E21 #217E3D
triadic
#337E21 #21337E #7E2133
tetradic
#337E21 #21617E #6C217E #7E3D21
square
#337E21 #21617E #6C217E #7E3D21
split-complementary
#337E21 #3D217E #7E2161
monochromatic
#0C1D08 #1F4E14 #337E21 #47AE2E #64D04A

Accessibility & contrast

On white

5.06
#337E21 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#337E21 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #337E21
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##337E21#FFFFFF#000000##FFFFFF
##337E211.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827212
Deuteranopia (green-blind)
#786C2A
Tritanopia (blue-blind)
#2A7A6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #337e21;
/* rgb */ color: rgb(51, 126, 33);
/* oklch */ color: oklch(52.6% 0.147 140.2);
Tailwind
colors: {
  custom: {
    50: '#74a462',
    500: '#337e21',
    950: '#000000',
  },
}
SCSS
$custom: #337e21;
$custom-light: #74a462;
$custom-dark: #000000;
JSON
{
  "hex": "#337e21",
  "rgb": {
    "r": 51,
    "g": 126,
    "b": 33
  },
  "hsl": {
    "h": 108.387,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.52621,
    "c": 0.14711,
    "h": 140.2
  },
  "luminance": 0.15735
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #337E21

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

Preview Lab → · Contrast checker → · Palette generator →

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