#338E2D#338E2D

#338E2D is a mid, vivid green. Relative luminance 0.202; OKLCH L 57.2% C 0.159 H 142.3°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#338E2D
RGBrgb(51, 142, 45)
HSLhsl(116, 52%, 37%)
HSVhsv(116, 68%, 56%)
CMYKcmyk(64.1%, 0%, 68.3%, 44.3%)
CIE-LABlab(52.11, -46.18, 42.25)
CIE-LCHlch(52.11, 62.59, 137.54°)
OKLaboklab(57.18% -0.1257 0.0973)
OKLCHoklch(57.18% 0.159 142.3)
XYZxyz(11.5113, 20.2382, 5.7818)
Luminance0.2024 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338E2D #882D8E
analogous
#648E2D #338E2D #2D8E58
triadic
#338E2D #2D338E #8E2D33
tetradic
#338E2D #2D648E #882D8E #8E582D
square
#338E2D #2D648E #882D8E #8E582D
split-complementary
#338E2D #582D8E #8E2D64
monochromatic
#123110 #22601E #338E2D #44BC3C #6DCF67

Accessibility & contrast

On white

4.16
#338E2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#338E2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338E2D
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338E2D#FFFFFF#000000##000000
##338E2D1.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#918120
Deuteranopia (green-blind)
#867936
Tritanopia (blue-blind)
#228A7A
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #338e2d;
/* rgb */ color: rgb(51, 142, 45);
/* oklch */ color: oklch(57.2% 0.159 142.3);
Tailwind
colors: {
  custom: {
    50: '#76b06b',
    500: '#338e2d',
    950: '#000000',
  },
}
SCSS
$custom: #338e2d;
$custom-light: #76b06b;
$custom-dark: #000000;
JSON
{
  "hex": "#338e2d",
  "rgb": {
    "r": 51,
    "g": 142,
    "b": 45
  },
  "hsl": {
    "h": 116.289,
    "s": 51.872,
    "l": 36.667
  },
  "oklch": {
    "l": 0.5718,
    "c": 0.15902,
    "h": 142.3
  },
  "luminance": 0.20239
}

Semantic roles & 50–950 ramp

primary
#338E2D
secondary
#B061B5
accent
#4CDBD2
background
#F7FAF6
surface
#EEF5EB
border
#C9CFC6
text
#091107
muted
#7B807A

Preview Lab

Preview with #338E2D

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

Preview Lab → · Contrast checker → · Palette generator →

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