#338D16#338D16

#338D16 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#338D16
RGBrgb(51, 141, 22)
HSLhsl(105, 73%, 32%)
HSVhsv(105, 84%, 55%)
CMYKcmyk(63.8%, 0%, 84.4%, 44.7%)
CIE-LABlab(51.62, -47.56, 50.10)
CIE-LCHlch(51.62, 69.08, 133.51°)
OKLaboklab(56.73% -0.1307 0.1106)
OKLCHoklch(56.73% 0.171 139.8)
XYZxyz(11.0344, 19.8104, 4.0012)
Luminance0.1981 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338D16 #70168D
analogous
#6F8D16 #338D16 #168D35
triadic
#338D16 #16338D #8D1633
tetradic
#338D16 #166F8D #70168D #8D3516
square
#338D16 #166F8D #70168D #8D3516
split-complementary
#338D16 #35168D #8D166F
monochromatic
#0D2305 #20580E #338D16 #46C21E #65E13D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##338D16#FFFFFF#000000##000000
##338D161.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)
#917F00
Deuteranopia (green-blind)
#867825
Tritanopia (blue-blind)
#268878
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #338d16;
/* rgb */ color: rgb(51, 141, 22);
/* oklch */ color: oklch(56.7% 0.171 139.8);
Tailwind
colors: {
  custom: {
    50: '#77af5f',
    500: '#338d16',
    950: '#000000',
  },
}
SCSS
$custom: #338d16;
$custom-light: #77af5f;
$custom-dark: #000000;
JSON
{
  "hex": "#338d16",
  "rgb": {
    "r": 51,
    "g": 141,
    "b": 22
  },
  "hsl": {
    "h": 105.378,
    "s": 73.006,
    "l": 31.961
  },
  "oklch": {
    "l": 0.56733,
    "c": 0.17121,
    "h": 139.8
  },
  "luminance": 0.19811
}

Semantic roles & 50–950 ramp

primary
#338D16
secondary
#A13EC1
accent
#38F0C3
background
#F7FAF5
surface
#EEF5EA
border
#C9CFC6
text
#0A1005
muted
#7C7F79

Preview Lab

Preview with #338D16

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

Preview Lab → · Contrast checker → · Palette generator →

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