#338B1D#338B1D

#338B1D is a mid, vivid green. Relative luminance 0.193; OKLCH L 56.2% C 0.166 H 140.3°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#338B1D
RGBrgb(51, 139, 29)
HSLhsl(108, 65%, 33%)
HSVhsv(108, 79%, 55%)
CMYKcmyk(63.3%, 0%, 79.1%, 45.5%)
CIE-LABlab(50.99, -46.41, 47.34)
CIE-LCHlch(50.99, 66.30, 134.44°)
OKLaboklab(56.22% -0.1273 0.1058)
OKLCHoklch(56.22% 0.166 140.3)
XYZxyz(10.8191, 19.2567, 4.3089)
Luminance0.1926 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338B1D #751D8B
analogous
#6A8B1D #338B1D #1D8B3E
triadic
#338B1D #1D338B #8B1D33
tetradic
#338B1D #1D6A8B #751D8B #8B3E1D
square
#338B1D #1D6A8B #751D8B #8B3E1D
split-complementary
#338B1D #3E1D8B #8B1D6A
monochromatic
#0E2608 #205812 #338B1D #46BE28 #66D949

Accessibility & contrast

On white

4.33
#338B1D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#338B1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338B1D
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338B1D#FFFFFF#000000##000000
##338B1D1.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E01
Deuteranopia (green-blind)
#847729
Tritanopia (blue-blind)
#268676
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #338b1d;
/* rgb */ color: rgb(51, 139, 29);
/* oklch */ color: oklch(56.2% 0.166 140.3);
Tailwind
colors: {
  custom: {
    50: '#77ae62',
    500: '#338b1d',
    950: '#000000',
  },
}
SCSS
$custom: #338b1d;
$custom-light: #77ae62;
$custom-dark: #000000;
JSON
{
  "hex": "#338b1d",
  "rgb": {
    "r": 51,
    "g": 139,
    "b": 29
  },
  "hsl": {
    "h": 108,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.56217,
    "c": 0.16554,
    "h": 140.3
  },
  "luminance": 0.19258
}

Semantic roles & 50–950 ramp

primary
#338B1D
secondary
#A449BB
accent
#3FE8C7
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A1005
muted
#7C7F7A

Preview Lab

Preview with #338B1D

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

Preview Lab → · Contrast checker → · Palette generator →

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