#338A14#338A14

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

Color values

HEX#338A14
RGBrgb(51, 138, 20)
HSLhsl(104, 75%, 31%)
HSVhsv(104, 86%, 54%)
CMYKcmyk(63%, 0%, 85.5%, 45.9%)
CIE-LABlab(50.61, -46.58, 49.72)
CIE-LCHlch(50.61, 68.13, 133.13°)
OKLaboklab(55.89% -0.1282 0.1095)
OKLCHoklch(55.89% 0.169 139.5)
XYZxyz(10.5795, 18.9303, 3.7581)
Luminance0.1893 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338A14 #6B148A
analogous
#6E8A14 #338A14 #148A30
triadic
#338A14 #14338A #8A1433
tetradic
#338A14 #146E8A #6B148A #8A3014
square
#338A14 #146E8A #6B148A #8A3014
split-complementary
#338A14 #30148A #8A146E
monochromatic
#0B1F05 #1F550C #338A14 #47BF1C #64E236

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##338A14#FFFFFF#000000##000000
##338A141.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)
#288575
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #338a14;
/* rgb */ color: rgb(51, 138, 20);
/* oklch */ color: oklch(55.9% 0.169 139.5);
Tailwind
colors: {
  custom: {
    50: '#77ad5e',
    500: '#338a14',
    950: '#000000',
  },
}
SCSS
$custom: #338a14;
$custom-light: #77ad5e;
$custom-dark: #000000;
JSON
{
  "hex": "#338a14",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 20
  },
  "hsl": {
    "h": 104.237,
    "s": 74.684,
    "l": 30.98
  },
  "oklch": {
    "l": 0.55888,
    "c": 0.16858,
    "h": 139.5
  },
  "luminance": 0.18931
}

Semantic roles & 50–950 ramp

primary
#338A14
secondary
#9C3CBE
accent
#36F1C0
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A1005
muted
#7C7F79

Preview Lab

Preview with #338A14

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

Preview Lab → · Contrast checker → · Palette generator →

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