#338D14#338D14

#338D14 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#338D14
RGBrgb(51, 141, 20)
HSLhsl(105, 75%, 32%)
HSVhsv(105, 86%, 55%)
CMYKcmyk(63.8%, 0%, 85.8%, 44.7%)
CIE-LABlab(51.61, -47.66, 50.63)
CIE-LCHlch(51.61, 69.53, 133.27°)
OKLaboklab(56.72% -0.1311 0.1114)
OKLCHoklch(56.72% 0.172 139.6)
XYZxyz(11.0159, 19.8030, 3.9035)
Luminance0.1980 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338D14 #6E148D
analogous
#708D14 #338D14 #148D32
triadic
#338D14 #14338D #8D1433
tetradic
#338D14 #14708D #6E148D #8D3214
square
#338D14 #14708D #6E148D #8D3214
split-complementary
#338D14 #32148D #8D1470
monochromatic
#0C2205 #20570C #338D14 #46C31C #64E339

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##338D14#FFFFFF#000000##000000
##338D141.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: #338d14;
/* rgb */ color: rgb(51, 141, 20);
/* oklch */ color: oklch(56.7% 0.172 139.6);
Tailwind
colors: {
  custom: {
    50: '#77af5f',
    500: '#338d14',
    950: '#000000',
  },
}
SCSS
$custom: #338d14;
$custom-light: #77af5f;
$custom-dark: #000000;
JSON
{
  "hex": "#338d14",
  "rgb": {
    "r": 51,
    "g": 141,
    "b": 20
  },
  "hsl": {
    "h": 104.628,
    "s": 75.155,
    "l": 31.569
  },
  "oklch": {
    "l": 0.56723,
    "c": 0.17202,
    "h": 139.6
  },
  "luminance": 0.19804
}

Semantic roles & 50–950 ramp

primary
#338D14
secondary
#9F3CC1
accent
#36F2C2
background
#F7FAF5
surface
#EEF5EA
border
#C9CFC6
text
#0A1005
muted
#7C7F79

Preview Lab

Preview with #338D14

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

Preview Lab → · Contrast checker → · Palette generator →

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