#338B17#338B17

#338B17 is a mid, vivid green. Relative luminance 0.192; OKLCH L 56.2% C 0.168 H 139.8°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#338B17
RGBrgb(51, 139, 23)
HSLhsl(106, 72%, 32%)
HSVhsv(106, 83%, 55%)
CMYKcmyk(63.3%, 0%, 83.5%, 45.5%)
CIE-LABlab(50.96, -46.78, 49.20)
CIE-LCHlch(50.96, 67.89, 133.56°)
OKLaboklab(56.18% -0.1286 0.1088)
OKLCHoklch(56.18% 0.168 139.8)
XYZxyz(10.7520, 19.2299, 3.9556)
Luminance0.1923 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338B17 #6F178B
analogous
#6D8B17 #338B17 #178B35
triadic
#338B17 #17338B #8B1733
tetradic
#338B17 #176D8B #6F178B #8B3517
square
#338B17 #176D8B #6F178B #8B3517
split-complementary
#338B17 #35178B #8B176D
monochromatic
#0C2206 #20560E #338B17 #46C020 #64DF3D

Accessibility & contrast

On white

4.33
#338B17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#338B17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338B17
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338B17#FFFFFF#000000##000000
##338B171.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E00
Deuteranopia (green-blind)
#847726
Tritanopia (blue-blind)
#278676
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #338b17;
/* rgb */ color: rgb(51, 139, 23);
/* oklch */ color: oklch(56.2% 0.168 139.8);
Tailwind
colors: {
  custom: {
    50: '#77ae60',
    500: '#338b17',
    950: '#000000',
  },
}
SCSS
$custom: #338b17;
$custom-light: #77ae60;
$custom-dark: #000000;
JSON
{
  "hex": "#338b17",
  "rgb": {
    "r": 51,
    "g": 139,
    "b": 23
  },
  "hsl": {
    "h": 105.517,
    "s": 71.605,
    "l": 31.765
  },
  "oklch": {
    "l": 0.56182,
    "c": 0.16847,
    "h": 139.8
  },
  "luminance": 0.19231
}

Semantic roles & 50–950 ramp

primary
#338B17
secondary
#A03FBF
accent
#39EEC3
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A1005
muted
#7C7F79

Preview Lab

Preview with #338B17

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

Preview Lab → · Contrast checker → · Palette generator →

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