#338E21#338E21

#338E21 is a mid, vivid green. Relative luminance 0.202; OKLCH L 57.1% C 0.167 H 140.8°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#338E21
RGBrgb(51, 142, 33)
HSLhsl(110, 62%, 34%)
HSVhsv(110, 77%, 56%)
CMYKcmyk(64.1%, 0%, 76.8%, 44.3%)
CIE-LABlab(52.02, -47.23, 46.95)
CIE-LCHlch(52.02, 66.59, 135.17°)
OKLaboklab(57.08% -0.1293 0.1056)
OKLCHoklch(57.08% 0.167 140.8)
XYZxyz(11.3122, 20.1585, 4.7334)
Luminance0.2016 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338E21 #7C218E
analogous
#6A8E21 #338E21 #218E46
triadic
#338E21 #21338E #8E2133
tetradic
#338E21 #216A8E #7C218E #8E4621
square
#338E21 #216A8E #7C218E #8E4621
split-complementary
#338E21 #46218E #8E216A
monochromatic
#0F2B0A #215C15 #338E21 #45C02D #68D752

Accessibility & contrast

On white

4.17
#338E21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#338E21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338E21
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338E21#FFFFFF#000000##000000
##338E211.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#928109
Deuteranopia (green-blind)
#87792D
Tritanopia (blue-blind)
#258979
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #338e21;
/* rgb */ color: rgb(51, 142, 33);
/* oklch */ color: oklch(57.1% 0.167 140.8);
Tailwind
colors: {
  custom: {
    50: '#77b064',
    500: '#338e21',
    950: '#000000',
  },
}
SCSS
$custom: #338e21;
$custom-light: #77b064;
$custom-dark: #000000;
JSON
{
  "hex": "#338e21",
  "rgb": {
    "r": 51,
    "g": 142,
    "b": 33
  },
  "hsl": {
    "h": 110.092,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.57077,
    "c": 0.16691,
    "h": 140.8
  },
  "luminance": 0.2016
}

Semantic roles & 50–950 ramp

primary
#338E21
secondary
#A950BA
accent
#42E5CA
background
#F7FAF6
surface
#EEF5EB
border
#C9CFC6
text
#0A1106
muted
#7C807A

Preview Lab

Preview with #338E21

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

Preview Lab → · Contrast checker → · Palette generator →

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