#338E15#338E15

#338E15 is a mid, vivid green. Relative luminance 0.201; OKLCH L 57.0% C 0.173 H 139.8°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#338E15
RGBrgb(51, 142, 21)
HSLhsl(105, 74%, 32%)
HSVhsv(105, 85%, 56%)
CMYKcmyk(64.1%, 0%, 85.2%, 44.3%)
CIE-LABlab(51.95, -47.97, 50.67)
CIE-LCHlch(51.95, 69.77, 133.43°)
OKLaboklab(57.01% -0.1319 0.1116)
OKLCHoklch(57.01% 0.173 139.8)
XYZxyz(11.1731, 20.1029, 4.0008)
Luminance0.2010 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338E15 #70158E
analogous
#708E15 #338E15 #158E34
triadic
#338E15 #15338E #8E1533
tetradic
#338E15 #15708E #70158E #8E3415
square
#338E15 #15708E #70158E #8E3415
split-complementary
#338E15 #34158E #8E1570
monochromatic
#0D2305 #20590D #338E15 #46C31D #65E23B

Accessibility & contrast

On white

4.18
#338E15 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#338E15 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338E15
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338E15#FFFFFF#000000##000000
##338E151.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#928000
Deuteranopia (green-blind)
#877925
Tritanopia (blue-blind)
#268978
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #338e15;
/* rgb */ color: rgb(51, 142, 21);
/* oklch */ color: oklch(57.0% 0.173 139.8);
Tailwind
colors: {
  custom: {
    50: '#77b05f',
    500: '#338e15',
    950: '#000000',
  },
}
SCSS
$custom: #338e15;
$custom-light: #77b05f;
$custom-dark: #000000;
JSON
{
  "hex": "#338e15",
  "rgb": {
    "r": 51,
    "g": 142,
    "b": 21
  },
  "hsl": {
    "h": 105.124,
    "s": 74.233,
    "l": 31.961
  },
  "oklch": {
    "l": 0.57005,
    "c": 0.17278,
    "h": 139.8
  },
  "luminance": 0.20104
}

Semantic roles & 50–950 ramp

primary
#338E15
secondary
#A13DC2
accent
#37F1C3
background
#F7FAF5
surface
#EEF5EA
border
#C9CFC6
text
#0A1005
muted
#7C7F79

Preview Lab

Preview with #338E15

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

Preview Lab → · Contrast checker → · Palette generator →

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