#338A15#338A15

#338A15 is a mid, vivid green. Relative luminance 0.189; OKLCH L 55.9% C 0.168 H 139.6°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#338A15
RGBrgb(51, 138, 21)
HSLhsl(105, 74%, 31%)
HSVhsv(105, 85%, 54%)
CMYKcmyk(63%, 0%, 84.8%, 45.9%)
CIE-LABlab(50.61, -46.53, 49.45)
CIE-LCHlch(50.61, 67.90, 133.25°)
OKLaboklab(55.89% -0.128 0.1091)
OKLCHoklch(55.89% 0.168 139.6)
XYZxyz(10.5886, 18.9339, 3.8059)
Luminance0.1893 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338A15 #6C158A
analogous
#6D8A15 #338A15 #158A31
triadic
#338A15 #15338A #8A1533
tetradic
#338A15 #156D8A #6C158A #8A3115
square
#338A15 #156D8A #6C158A #8A3115
split-complementary
#338A15 #31158A #8A156D
monochromatic
#0C2005 #1F550D #338A15 #47BF1D #64E139

Accessibility & contrast

On white

4.39
#338A15 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#338A15 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338A15
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338A15#FFFFFF#000000##000000
##338A151.004.394.794.79
#FFFFFF4.391.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D00
Deuteranopia (green-blind)
#847624
Tritanopia (blue-blind)
#278575
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #338a15;
/* rgb */ color: rgb(51, 138, 21);
/* oklch */ color: oklch(55.9% 0.168 139.6);
Tailwind
colors: {
  custom: {
    50: '#77ad5f',
    500: '#338a15',
    950: '#000000',
  },
}
SCSS
$custom: #338a15;
$custom-light: #77ad5f;
$custom-dark: #000000;
JSON
{
  "hex": "#338a15",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 21
  },
  "hsl": {
    "h": 104.615,
    "s": 73.585,
    "l": 31.176
  },
  "oklch": {
    "l": 0.55893,
    "c": 0.16817,
    "h": 139.6
  },
  "luminance": 0.18935
}

Semantic roles & 50–950 ramp

primary
#338A15
secondary
#9D3DBE
accent
#38F0C1
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A1005
muted
#7C7F79

Preview Lab

Preview with #338A15

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

Preview Lab → · Contrast checker → · Palette generator →

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