#338F17#338F17

#338F17 is a mid, vivid green. Relative luminance 0.204; OKLCH L 57.3% C 0.173 H 139.9°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#338F17
RGBrgb(51, 143, 23)
HSLhsl(106, 72%, 33%)
HSVhsv(106, 84%, 56%)
CMYKcmyk(64.3%, 0%, 83.9%, 43.9%)
CIE-LABlab(52.30, -48.22, 50.43)
CIE-LCHlch(52.30, 69.78, 133.72°)
OKLaboklab(57.29% -0.1325 0.1114)
OKLCHoklch(57.29% 0.173 139.9)
XYZxyz(11.3418, 20.4095, 4.1522)
Luminance0.2041 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338F17 #73178F
analogous
#6F8F17 #338F17 #178F37
triadic
#338F17 #17338F #8F1733
tetradic
#338F17 #176F8F #73178F #8F3717
square
#338F17 #176F8F #73178F #8F3717
split-complementary
#338F17 #37178F #8F176F
monochromatic
#0D2606 #205A0F #338F17 #46C41F #65E040

Accessibility & contrast

On white

4.13
#338F17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#338F17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338F17
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338F17#FFFFFF#000000##000000
##338F171.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#938100
Deuteranopia (green-blind)
#887A26
Tritanopia (blue-blind)
#268A79
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #338f17;
/* rgb */ color: rgb(51, 143, 23);
/* oklch */ color: oklch(57.3% 0.173 139.9);
Tailwind
colors: {
  custom: {
    50: '#78b160',
    500: '#338f17',
    950: '#000000',
  },
}
SCSS
$custom: #338f17;
$custom-light: #78b160;
$custom-dark: #000000;
JSON
{
  "hex": "#338f17",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 23
  },
  "hsl": {
    "h": 106,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.57293,
    "c": 0.1731,
    "h": 139.9
  },
  "luminance": 0.20411
}

Semantic roles & 50–950 ramp

primary
#338F17
secondary
#A341C1
accent
#39EFC4
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1105
muted
#7C807A

Preview Lab

Preview with #338F17

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

Preview Lab → · Contrast checker → · Palette generator →

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