#338916#338916

#338916 is a mid, vivid green. Relative luminance 0.187; OKLCH L 55.6% C 0.167 H 139.6°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#338916
RGBrgb(51, 137, 22)
HSLhsl(105, 72%, 31%)
HSVhsv(105, 84%, 54%)
CMYKcmyk(62.8%, 0%, 83.9%, 46.3%)
CIE-LABlab(50.28, -46.11, 48.87)
CIE-LCHlch(50.28, 67.19, 133.34°)
OKLaboklab(55.62% -0.1268 0.108)
OKLCHoklch(55.62% 0.167 139.6)
XYZxyz(10.4553, 18.6521, 3.8081)
Luminance0.1865 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338916 #6C1689
analogous
#6C8916 #338916 #168933
triadic
#338916 #163389 #891633
tetradic
#338916 #166C89 #6C1689 #893316
square
#338916 #166C89 #6C1689 #893316
split-complementary
#338916 #331689 #89166C
monochromatic
#0C2005 #1F540E #338916 #47BE1E #64DF3A

Accessibility & contrast

On white

4.44
#338916 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#338916 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338916
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338916#FFFFFF#000000##000000
##3389161.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C00
Deuteranopia (green-blind)
#837525
Tritanopia (blue-blind)
#288474
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #338916;
/* rgb */ color: rgb(51, 137, 22);
/* oklch */ color: oklch(55.6% 0.167 139.6);
Tailwind
colors: {
  custom: {
    50: '#76ac5f',
    500: '#338916',
    950: '#000000',
  },
}
SCSS
$custom: #338916;
$custom-light: #76ac5f;
$custom-dark: #000000;
JSON
{
  "hex": "#338916",
  "rgb": {
    "r": 51,
    "g": 137,
    "b": 22
  },
  "hsl": {
    "h": 104.87,
    "s": 72.327,
    "l": 31.176
  },
  "oklch": {
    "l": 0.5562,
    "c": 0.16658,
    "h": 139.6
  },
  "luminance": 0.18653
}

Semantic roles & 50–950 ramp

primary
#338916
secondary
#9D3EBD
accent
#39EFC1
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A1005
muted
#7C7F79

Preview Lab

Preview with #338916

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

Preview Lab → · Contrast checker → · Palette generator →

#338916 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva