#338E1E#338E1E

#338E1E is a mid, vivid green. Relative luminance 0.201; OKLCH L 57.1% C 0.169 H 140.5°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#338E1E
RGBrgb(51, 142, 30)
HSLhsl(109, 65%, 34%)
HSVhsv(109, 79%, 56%)
CMYKcmyk(64.1%, 0%, 78.9%, 44.3%)
CIE-LABlab(52.00, -47.44, 47.98)
CIE-LCHlch(52.00, 67.47, 134.68°)
OKLaboklab(57.06% -0.13 0.1073)
OKLCHoklch(57.06% 0.169 140.5)
XYZxyz(11.2720, 20.1425, 4.5219)
Luminance0.2014 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338E1E #791E8E
analogous
#6B8E1E #338E1E #1E8E41
triadic
#338E1E #1E338E #8E1E33
tetradic
#338E1E #1E6B8E #791E8E #8E411E
square
#338E1E #1E6B8E #791E8E #8E411E
split-complementary
#338E1E #411E8E #8E1E6B
monochromatic
#0F2909 #215B13 #338E1E #45C129 #67D94D

Accessibility & contrast

On white

4.18
#338E1E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#338E1E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338E1E
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338E1E#FFFFFF#000000##000000
##338E1E1.004.185.035.03
#FFFFFF4.181.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#928102
Deuteranopia (green-blind)
#87792B
Tritanopia (blue-blind)
#258979
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #338e1e;
/* rgb */ color: rgb(51, 142, 30);
/* oklch */ color: oklch(57.1% 0.169 140.5);
Tailwind
colors: {
  custom: {
    50: '#77b063',
    500: '#338e1e',
    950: '#000000',
  },
}
SCSS
$custom: #338e1e;
$custom-light: #77b063;
$custom-dark: #000000;
JSON
{
  "hex": "#338e1e",
  "rgb": {
    "r": 51,
    "g": 142,
    "b": 30
  },
  "hsl": {
    "h": 108.75,
    "s": 65.116,
    "l": 33.725
  },
  "oklch": {
    "l": 0.57057,
    "c": 0.16857,
    "h": 140.5
  },
  "luminance": 0.20144
}

Semantic roles & 50–950 ramp

primary
#338E1E
secondary
#A74CBC
accent
#40E8C9
background
#F7FAF6
surface
#EEF5EB
border
#C9CFC6
text
#0A1006
muted
#7C7F7A

Preview Lab

Preview with #338E1E

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

Preview Lab → · Contrast checker → · Palette generator →

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