#338D17#338D17

#338D17 is a mid, vivid green. Relative luminance 0.198; OKLCH L 56.7% C 0.171 H 139.8°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#338D17
RGBrgb(51, 141, 23)
HSLhsl(106, 72%, 32%)
HSVhsv(106, 84%, 55%)
CMYKcmyk(63.8%, 0%, 83.7%, 44.7%)
CIE-LABlab(51.63, -47.51, 49.82)
CIE-LCHlch(51.63, 68.84, 133.64°)
OKLaboklab(56.74% -0.1305 0.1101)
OKLCHoklch(56.74% 0.171 139.8)
XYZxyz(11.0443, 19.8144, 4.0530)
Luminance0.1981 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338D17 #71178D
analogous
#6E8D17 #338D17 #178D36
triadic
#338D17 #17338D #8D1733
tetradic
#338D17 #176E8D #71178D #8D3617
square
#338D17 #176E8D #71178D #8D3617
split-complementary
#338D17 #36178D #8D176E
monochromatic
#0D2406 #20580E #338D17 #46C220 #65E03F

Accessibility & contrast

On white

4.23
#338D17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#338D17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338D17
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338D17#FFFFFF#000000##000000
##338D171.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#918000
Deuteranopia (green-blind)
#867826
Tritanopia (blue-blind)
#268878
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #338d17;
/* rgb */ color: rgb(51, 141, 23);
/* oklch */ color: oklch(56.7% 0.171 139.8);
Tailwind
colors: {
  custom: {
    50: '#77af60',
    500: '#338d17',
    950: '#000000',
  },
}
SCSS
$custom: #338d17;
$custom-light: #77af60;
$custom-dark: #000000;
JSON
{
  "hex": "#338d17",
  "rgb": {
    "r": 51,
    "g": 141,
    "b": 23
  },
  "hsl": {
    "h": 105.763,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.56738,
    "c": 0.17078,
    "h": 139.8
  },
  "luminance": 0.19815
}

Semantic roles & 50–950 ramp

primary
#338D17
secondary
#A240C0
accent
#39EFC4
background
#F7FAF5
surface
#EEF5EA
border
#C9CFC6
text
#0A1005
muted
#7C7F79

Preview Lab

Preview with #338D17

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

Preview Lab → · Contrast checker → · Palette generator →

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