#338D13#338D13

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

Color values

HEX#338D13
RGBrgb(51, 141, 19)
HSLhsl(104, 76%, 31%)
HSVhsv(104, 87%, 55%)
CMYKcmyk(63.8%, 0%, 86.5%, 44.7%)
CIE-LABlab(51.61, -47.71, 50.88)
CIE-LCHlch(51.61, 69.75, 133.16°)
OKLaboklab(56.72% -0.1313 0.1118)
OKLCHoklch(56.72% 0.172 139.6)
XYZxyz(11.0072, 19.7995, 3.8576)
Luminance0.1980 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338D13 #6D138D
analogous
#708D13 #338D13 #138D30
triadic
#338D13 #13338D #8D1333
tetradic
#338D13 #13708D #6D138D #8D3013
square
#338D13 #13708D #6D138D #8D3013
split-complementary
#338D13 #30138D #8D1370
monochromatic
#0C2104 #1F570C #338D13 #47C31A #64E436

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##338D13#FFFFFF#000000##000000
##338D131.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)
#867824
Tritanopia (blue-blind)
#278878
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #338d13;
/* rgb */ color: rgb(51, 141, 19);
/* oklch */ color: oklch(56.7% 0.172 139.6);
Tailwind
colors: {
  custom: {
    50: '#77af5e',
    500: '#338d13',
    950: '#000000',
  },
}
SCSS
$custom: #338d13;
$custom-light: #77af5e;
$custom-dark: #000000;
JSON
{
  "hex": "#338d13",
  "rgb": {
    "r": 51,
    "g": 141,
    "b": 19
  },
  "hsl": {
    "h": 104.262,
    "s": 76.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.56718,
    "c": 0.17242,
    "h": 139.6
  },
  "luminance": 0.19801
}

Semantic roles & 50–950 ramp

primary
#338D13
secondary
#9E3BC1
accent
#35F3C1
background
#F7FAF5
surface
#EEF5EA
border
#C9CFC6
text
#0A1005
muted
#7C7F79

Preview Lab

Preview with #338D13

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

Preview Lab → · Contrast checker → · Palette generator →

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