#338915#338915

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

Color values

HEX#338915
RGBrgb(51, 137, 21)
HSLhsl(104, 73%, 31%)
HSVhsv(104, 85%, 54%)
CMYKcmyk(62.8%, 0%, 84.7%, 46.3%)
CIE-LABlab(50.27, -46.16, 49.15)
CIE-LCHlch(50.27, 67.42, 133.21°)
OKLaboklab(55.61% -0.127 0.1084)
OKLCHoklch(55.61% 0.167 139.5)
XYZxyz(10.4458, 18.6483, 3.7583)
Luminance0.1865 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338915 #6B1589
analogous
#6D8915 #338915 #158931
triadic
#338915 #153389 #891533
tetradic
#338915 #156D89 #6B1589 #893115
square
#338915 #156D89 #6B1589 #893115
split-complementary
#338915 #311589 #89156D
monochromatic
#0B1F05 #1F540D #338915 #47BE1D #64E038

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##338915#FFFFFF#000000##000000
##3389151.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)
#837524
Tritanopia (blue-blind)
#288474
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #338915;
/* rgb */ color: rgb(51, 137, 21);
/* oklch */ color: oklch(55.6% 0.167 139.5);
Tailwind
colors: {
  custom: {
    50: '#76ac5e',
    500: '#338915',
    950: '#000000',
  },
}
SCSS
$custom: #338915;
$custom-light: #76ac5e;
$custom-dark: #000000;
JSON
{
  "hex": "#338915",
  "rgb": {
    "r": 51,
    "g": 137,
    "b": 21
  },
  "hsl": {
    "h": 104.483,
    "s": 73.418,
    "l": 30.98
  },
  "oklch": {
    "l": 0.55614,
    "c": 0.16701,
    "h": 139.5
  },
  "luminance": 0.18649
}

Semantic roles & 50–950 ramp

primary
#338915
secondary
#9C3DBD
accent
#38F0C0
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A1005
muted
#7C7F79

Preview Lab

Preview with #338915

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

Preview Lab → · Contrast checker → · Palette generator →

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