#338D15#338D15

#338D15 is a mid, vivid green. Relative luminance 0.198; OKLCH L 56.7% C 0.172 H 139.7°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#338D15
RGBrgb(51, 141, 21)
HSLhsl(105, 74%, 32%)
HSVhsv(105, 85%, 55%)
CMYKcmyk(63.8%, 0%, 85.1%, 44.7%)
CIE-LABlab(51.62, -47.61, 50.37)
CIE-LCHlch(51.62, 69.31, 133.39°)
OKLaboklab(56.73% -0.1309 0.111)
OKLCHoklch(56.73% 0.172 139.7)
XYZxyz(11.0250, 19.8067, 3.9514)
Luminance0.1981 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338D15 #6F158D
analogous
#6F8D15 #338D15 #158D33
triadic
#338D15 #15338D #8D1533
tetradic
#338D15 #156F8D #6F158D #8D3315
square
#338D15 #156F8D #6F158D #8D3315
split-complementary
#338D15 #33158D #8D156F
monochromatic
#0C2205 #20580D #338D15 #46C21D #64E23B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##338D15#FFFFFF#000000##000000
##338D151.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: #338d15;
/* rgb */ color: rgb(51, 141, 21);
/* oklch */ color: oklch(56.7% 0.172 139.7);
Tailwind
colors: {
  custom: {
    50: '#77af5f',
    500: '#338d15',
    950: '#000000',
  },
}
SCSS
$custom: #338d15;
$custom-light: #77af5f;
$custom-dark: #000000;
JSON
{
  "hex": "#338d15",
  "rgb": {
    "r": 51,
    "g": 141,
    "b": 21
  },
  "hsl": {
    "h": 105,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.56728,
    "c": 0.17164,
    "h": 139.7
  },
  "luminance": 0.19808
}

Semantic roles & 50–950 ramp

primary
#338D15
secondary
#A03DC1
accent
#37F1C2
background
#F7FAF5
surface
#EEF5EA
border
#C9CFC6
text
#0A1005
muted
#7C7F79

Preview Lab

Preview with #338D15

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

Preview Lab → · Contrast checker → · Palette generator →

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