#338F2D#338F2D

#338F2D is a mid, vivid green. Relative luminance 0.205; OKLCH L 57.5% C 0.160 H 142.3°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#338F2D
RGBrgb(51, 143, 45)
HSLhsl(116, 52%, 37%)
HSVhsv(116, 69%, 56%)
CMYKcmyk(64.3%, 0%, 68.5%, 43.9%)
CIE-LABlab(52.44, -46.55, 42.61)
CIE-LCHlch(52.44, 63.11, 137.53°)
OKLaboklab(57.46% -0.1267 0.0981)
OKLCHoklch(57.46% 0.16 142.3)
XYZxyz(11.6607, 20.5371, 5.8317)
Luminance0.2054 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338F2D #892D8F
analogous
#648F2D #338F2D #2D8F58
triadic
#338F2D #2D338F #8F2D33
tetradic
#338F2D #2D648F #892D8F #8F582D
square
#338F2D #2D648F #892D8F #8F582D
split-complementary
#338F2D #582D8F #8F2D64
monochromatic
#123210 #22601E #338F2D #44BE3C #6ECF67

Accessibility & contrast

On white

4.11
#338F2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#338F2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338F2D
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338F2D#FFFFFF#000000##000000
##338F2D1.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#928220
Deuteranopia (green-blind)
#877A36
Tritanopia (blue-blind)
#228B7B
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #338f2d;
/* rgb */ color: rgb(51, 143, 45);
/* oklch */ color: oklch(57.5% 0.160 142.3);
Tailwind
colors: {
  custom: {
    50: '#77b16b',
    500: '#338f2d',
    950: '#000000',
  },
}
SCSS
$custom: #338f2d;
$custom-light: #77b16b;
$custom-dark: #000000;
JSON
{
  "hex": "#338f2d",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 45
  },
  "hsl": {
    "h": 116.327,
    "s": 52.128,
    "l": 36.863
  },
  "oklch": {
    "l": 0.57456,
    "c": 0.16027,
    "h": 142.3
  },
  "luminance": 0.20538
}

Semantic roles & 50–950 ramp

primary
#338F2D
secondary
#B162B6
accent
#4CDCD3
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1107
muted
#7C807A

Preview Lab

Preview with #338F2D

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

Preview Lab → · Contrast checker → · Palette generator →

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