#338F1D#338F1D

#338F1D is a mid, vivid green. Relative luminance 0.204; OKLCH L 57.3% C 0.170 H 140.4°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#338F1D
RGBrgb(51, 143, 29)
HSLhsl(108, 66%, 34%)
HSVhsv(108, 80%, 56%)
CMYKcmyk(64.3%, 0%, 79.7%, 43.9%)
CIE-LABlab(52.33, -47.87, 48.63)
CIE-LCHlch(52.33, 68.24, 134.55°)
OKLaboklab(57.33% -0.1312 0.1085)
OKLCHoklch(57.33% 0.17 140.4)
XYZxyz(11.4089, 20.4363, 4.5055)
Luminance0.2044 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338F1D #791D8F
analogous
#6C8F1D #338F1D #1D8F40
triadic
#338F1D #1D338F #8F1D33
tetradic
#338F1D #1D6C8F #791D8F #8F401D
square
#338F1D #1D6C8F #791D8F #8F401D
split-complementary
#338F1D #401D8F #8F1D6C
monochromatic
#0F2908 #215C13 #338F1D #45C227 #67DB4C

Accessibility & contrast

On white

4.13
#338F1D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#338F1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338F1D
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338F1D#FFFFFF#000000##000000
##338F1D1.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#938100
Deuteranopia (green-blind)
#887A2A
Tritanopia (blue-blind)
#258A7A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #338f1d;
/* rgb */ color: rgb(51, 143, 29);
/* oklch */ color: oklch(57.3% 0.170 140.4);
Tailwind
colors: {
  custom: {
    50: '#77b163',
    500: '#338f1d',
    950: '#000000',
  },
}
SCSS
$custom: #338f1d;
$custom-light: #77b163;
$custom-dark: #000000;
JSON
{
  "hex": "#338f1d",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 29
  },
  "hsl": {
    "h": 108.421,
    "s": 66.279,
    "l": 33.725
  },
  "oklch": {
    "l": 0.57327,
    "c": 0.17027,
    "h": 140.4
  },
  "luminance": 0.20437
}

Semantic roles & 50–950 ramp

primary
#338F1D
secondary
#A74BBD
accent
#3FE9C8
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1106
muted
#7C807A

Preview Lab

Preview with #338F1D

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

Preview Lab → · Contrast checker → · Palette generator →

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