#338D1D#338D1D

#338D1D is a mid, vivid green. Relative luminance 0.198; OKLCH L 56.8% C 0.168 H 140.3°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#338D1D
RGBrgb(51, 141, 29)
HSLhsl(108, 66%, 33%)
HSVhsv(108, 79%, 55%)
CMYKcmyk(63.8%, 0%, 79.4%, 44.7%)
CIE-LABlab(51.66, -47.14, 47.99)
CIE-LCHlch(51.66, 67.27, 134.49°)
OKLaboklab(56.77% -0.1293 0.1072)
OKLCHoklch(56.77% 0.168 140.3)
XYZxyz(11.1114, 19.8412, 4.4063)
Luminance0.1984 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338D1D #771D8D
analogous
#6B8D1D #338D1D #1D8D3F
triadic
#338D1D #1D338D #8D1D33
tetradic
#338D1D #1D6B8D #771D8D #8D3F1D
square
#338D1D #1D6B8D #771D8D #8D3F1D
split-complementary
#338D1D #3F1D8D #8D1D6B
monochromatic
#0E2708 #215A13 #338D1D #45C027 #67DA4B

Accessibility & contrast

On white

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

On black

4.97
#338D1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338D1D
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338D1D#FFFFFF#000000##000000
##338D1D1.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#918000
Deuteranopia (green-blind)
#86782A
Tritanopia (blue-blind)
#258878
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #338d1d;
/* rgb */ color: rgb(51, 141, 29);
/* oklch */ color: oklch(56.8% 0.168 140.3);
Tailwind
colors: {
  custom: {
    50: '#77af62',
    500: '#338d1d',
    950: '#000000',
  },
}
SCSS
$custom: #338d1d;
$custom-light: #77af62;
$custom-dark: #000000;
JSON
{
  "hex": "#338d1d",
  "rgb": {
    "r": 51,
    "g": 141,
    "b": 29
  },
  "hsl": {
    "h": 108.214,
    "s": 65.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.56773,
    "c": 0.16791,
    "h": 140.3
  },
  "luminance": 0.19842
}

Semantic roles & 50–950 ramp

primary
#338D1D
secondary
#A64ABC
accent
#3FE9C7
background
#F7FAF6
surface
#EEF5EB
border
#C9CFC6
text
#0A1006
muted
#7C7F7A

Preview Lab

Preview with #338D1D

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

Preview Lab → · Contrast checker → · Palette generator →

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