#338F41#338F41

#338F41 is a mid, vivid green. Relative luminance 0.207; OKLCH L 57.7% C 0.144 H 146.1°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#338F41
RGBrgb(51, 143, 65)
HSLhsl(129, 47%, 38%)
HSVhsv(129, 64%, 56%)
CMYKcmyk(64.3%, 0%, 54.5%, 43.9%)
CIE-LABlab(52.65, -44.10, 33.36)
CIE-LCHlch(52.65, 55.30, 142.90°)
OKLaboklab(57.7% -0.1192 0.08)
OKLCHoklch(57.7% 0.144 146.1)
XYZxyz(12.1410, 20.7292, 8.3613)
Luminance0.2073 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338F41 #8F3381
analogous
#538F33 #338F41 #338F6F
triadic
#338F41 #41338F #8F4133
tetradic
#338F41 #33538F #8F3381 #8F6F33
square
#338F41 #33538F #8F3381 #8F6F33
split-complementary
#338F41 #6F338F #8F3353
monochromatic
#133518 #23622C #338F41 #43BC56 #70CC7E

Accessibility & contrast

On white

4.08
#338F41 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#338F41 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338F41
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338F41#FFFFFF#000000##000000
##338F411.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#91823A
Deuteranopia (green-blind)
#867B47
Tritanopia (blue-blind)
#1B8C7D
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #338f41;
/* rgb */ color: rgb(51, 143, 65);
/* oklch */ color: oklch(57.7% 0.144 146.1);
Tailwind
colors: {
  custom: {
    50: '#76b177',
    500: '#338f41',
    950: '#000000',
  },
}
SCSS
$custom: #338f41;
$custom-light: #76b177;
$custom-dark: #000000;
JSON
{
  "hex": "#338f41",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 65
  },
  "hsl": {
    "h": 129.13,
    "s": 47.423,
    "l": 38.039
  },
  "oklch": {
    "l": 0.577,
    "c": 0.14358,
    "h": 146.1
  },
  "luminance": 0.2073
}

Semantic roles & 50–950 ramp

primary
#338F41
secondary
#B46AA9
accent
#51C3D7
background
#F7FBF7
surface
#EEF6ED
border
#C9D0C8
text
#091109
muted
#7B807B

Preview Lab

Preview with #338F41

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

Preview Lab → · Contrast checker → · Palette generator →

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