#338D47#338D47

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

Color values

HEX#338D47
RGBrgb(51, 141, 71)
HSLhsl(133, 47%, 38%)
HSVhsv(133, 64%, 55%)
CMYKcmyk(63.8%, 0%, 49.6%, 44.7%)
CIE-LABlab(52.07, -42.39, 29.52)
CIE-LCHlch(52.07, 51.65, 145.15°)
OKLaboklab(57.25% -0.1145 0.0718)
OKLCHoklch(57.25% 0.135 147.9)
XYZxyz(12.0266, 20.2073, 9.2266)
Luminance0.2021 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338D47 #8D3379
analogous
#4C8D33 #338D47 #338D74
triadic
#338D47 #47338D #8D4733
tetradic
#338D47 #334C8D #8D3379 #8D7433
square
#338D47 #334C8D #8D3379 #8D7433
split-complementary
#338D47 #74338D #8D334C
monochromatic
#12331A #236030 #338D47 #43BA5E #6FCB84

Accessibility & contrast

On white

4.17
#338D47 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#338D47 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338D47
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338D47#FFFFFF#000000##000000
##338D471.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E8141
Deuteranopia (green-blind)
#83794C
Tritanopia (blue-blind)
#198A7D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #338d47;
/* rgb */ color: rgb(51, 141, 71);
/* oklch */ color: oklch(57.2% 0.135 147.9);
Tailwind
colors: {
  custom: {
    50: '#75af7b',
    500: '#338d47',
    950: '#000000',
  },
}
SCSS
$custom: #338d47;
$custom-light: #75af7b;
$custom-dark: #000000;
JSON
{
  "hex": "#338d47",
  "rgb": {
    "r": 51,
    "g": 141,
    "b": 71
  },
  "hsl": {
    "h": 133.333,
    "s": 46.875,
    "l": 37.647
  },
  "oklch": {
    "l": 0.57248,
    "c": 0.13514,
    "h": 147.9
  },
  "luminance": 0.20208
}

Semantic roles & 50–950 ramp

primary
#338D47
secondary
#B369A3
accent
#51B9D7
background
#F7FAF7
surface
#EDF5EE
border
#C8CFC9
text
#091009
muted
#7B7F7B

Preview Lab

Preview with #338D47

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

Preview Lab → · Contrast checker → · Palette generator →

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