#338D22#338D22

#338D22 is a mid, vivid green. Relative luminance 0.199; OKLCH L 56.8% C 0.165 H 140.8°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#338D22
RGBrgb(51, 141, 34)
HSLhsl(110, 61%, 34%)
HSVhsv(110, 76%, 55%)
CMYKcmyk(63.8%, 0%, 75.9%, 44.7%)
CIE-LABlab(51.69, -46.79, 46.25)
CIE-LCHlch(51.69, 65.79, 135.33°)
OKLaboklab(56.81% -0.128 0.1043)
OKLCHoklch(56.81% 0.165 140.8)
XYZxyz(11.1783, 19.8680, 4.7589)
Luminance0.1987 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338D22 #7C228D
analogous
#698D22 #338D22 #228D47
triadic
#338D22 #22338D #8D2233
tetradic
#338D22 #22698D #7C228D #8D4722
square
#338D22 #22698D #7C228D #8D4722
split-complementary
#338D22 #47228D #8D2269
monochromatic
#0F2A0A #215C16 #338D22 #45BE2E #68D654

Accessibility & contrast

On white

4.22
#338D22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#338D22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338D22
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338D22#FFFFFF#000000##000000
##338D221.004.224.974.97
#FFFFFF4.221.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#91800D
Deuteranopia (green-blind)
#86782D
Tritanopia (blue-blind)
#258878
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #338d22;
/* rgb */ color: rgb(51, 141, 34);
/* oklch */ color: oklch(56.8% 0.165 140.8);
Tailwind
colors: {
  custom: {
    50: '#77af65',
    500: '#338d22',
    950: '#000000',
  },
}
SCSS
$custom: #338d22;
$custom-light: #77af65;
$custom-dark: #000000;
JSON
{
  "hex": "#338d22",
  "rgb": {
    "r": 51,
    "g": 141,
    "b": 34
  },
  "hsl": {
    "h": 110.467,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.56808,
    "c": 0.16512,
    "h": 140.8
  },
  "luminance": 0.19869
}

Semantic roles & 50–950 ramp

primary
#338D22
secondary
#A951B9
accent
#44E4CB
background
#F7FAF6
surface
#EEF5EB
border
#C9CFC6
text
#0A1006
muted
#7C7F7A

Preview Lab

Preview with #338D22

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

Preview Lab → · Contrast checker → · Palette generator →

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