#338E22#338E22

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

Color values

HEX#338E22
RGBrgb(51, 142, 34)
HSLhsl(111, 61%, 35%)
HSVhsv(111, 76%, 56%)
CMYKcmyk(64.1%, 0%, 76.1%, 44.3%)
CIE-LABlab(52.02, -47.15, 46.59)
CIE-LCHlch(52.02, 66.28, 135.34°)
OKLaboklab(57.08% -0.129 0.105)
OKLCHoklch(57.08% 0.166 140.9)
XYZxyz(11.3264, 20.1642, 4.8083)
Luminance0.2016 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338E22 #7D228E
analogous
#698E22 #338E22 #228E47
triadic
#338E22 #22338E #8E2233
tetradic
#338E22 #22698E #7D228E #8E4722
square
#338E22 #22698E #7D228E #8E4722
split-complementary
#338E22 #47228E #8E2269
monochromatic
#102B0A #215D16 #338E22 #45BF2E #69D654

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##338E22#FFFFFF#000000##000000
##338E221.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)
#92810C
Deuteranopia (green-blind)
#87792D
Tritanopia (blue-blind)
#248979
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #338e22;
/* rgb */ color: rgb(51, 142, 34);
/* oklch */ color: oklch(57.1% 0.166 140.9);
Tailwind
colors: {
  custom: {
    50: '#77b065',
    500: '#338e22',
    950: '#000000',
  },
}
SCSS
$custom: #338e22;
$custom-light: #77b065;
$custom-dark: #000000;
JSON
{
  "hex": "#338e22",
  "rgb": {
    "r": 51,
    "g": 142,
    "b": 34
  },
  "hsl": {
    "h": 110.556,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.57085,
    "c": 0.16632,
    "h": 140.9
  },
  "luminance": 0.20165
}

Semantic roles & 50–950 ramp

primary
#338E22
secondary
#AA52BA
accent
#43E4CB
background
#F7FAF6
surface
#EEF5EB
border
#C9CFC6
text
#0A1106
muted
#7C807A

Preview Lab

Preview with #338E22

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

Preview Lab → · Contrast checker → · Palette generator →

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