#338E17#338E17

#338E17 is a mid, vivid green. Relative luminance 0.201; OKLCH L 57.0% C 0.172 H 139.9°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#338E17
RGBrgb(51, 142, 23)
HSLhsl(106, 72%, 32%)
HSVhsv(106, 84%, 56%)
CMYKcmyk(64.1%, 0%, 83.8%, 44.3%)
CIE-LABlab(51.96, -47.87, 50.13)
CIE-LCHlch(51.96, 69.31, 133.68°)
OKLaboklab(57.02% -0.1315 0.1108)
OKLCHoklch(57.02% 0.172 139.9)
XYZxyz(11.1924, 20.1106, 4.1024)
Luminance0.2011 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338E17 #72178E
analogous
#6F8E17 #338E17 #178E36
triadic
#338E17 #17338E #8E1733
tetradic
#338E17 #176F8E #72178E #8E3617
square
#338E17 #176F8E #72178E #8E3617
split-complementary
#338E17 #36178E #8E176F
monochromatic
#0D2506 #20590E #338E17 #46C320 #65E03F

Accessibility & contrast

On white

4.18
#338E17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#338E17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338E17
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338E17#FFFFFF#000000##000000
##338E171.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#928000
Deuteranopia (green-blind)
#877926
Tritanopia (blue-blind)
#268979
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #338e17;
/* rgb */ color: rgb(51, 142, 23);
/* oklch */ color: oklch(57.0% 0.172 139.9);
Tailwind
colors: {
  custom: {
    50: '#77b060',
    500: '#338e17',
    950: '#000000',
  },
}
SCSS
$custom: #338e17;
$custom-light: #77b060;
$custom-dark: #000000;
JSON
{
  "hex": "#338e17",
  "rgb": {
    "r": 51,
    "g": 142,
    "b": 23
  },
  "hsl": {
    "h": 105.882,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.57015,
    "c": 0.17194,
    "h": 139.9
  },
  "luminance": 0.20112
}

Semantic roles & 50–950 ramp

primary
#338E17
secondary
#A240C0
accent
#39EFC4
background
#F7FAF6
surface
#EEF5EB
border
#C9CFC6
text
#0A1105
muted
#7C807A

Preview Lab

Preview with #338E17

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

Preview Lab → · Contrast checker → · Palette generator →

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