#338D52#338D52

#338D52 is a mid, vivid green. Relative luminance 0.204; OKLCH L 57.4% C 0.124 H 151.7°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#338D52
RGBrgb(51, 141, 82)
HSLhsl(141, 47%, 38%)
HSVhsv(141, 64%, 55%)
CMYKcmyk(63.8%, 0%, 41.8%, 44.7%)
CIE-LABlab(52.24, -40.48, 23.79)
CIE-LCHlch(52.24, 46.96, 149.56°)
OKLaboklab(57.45% -0.1094 0.059)
OKLCHoklch(57.45% 0.124 151.7)
XYZxyz(12.4121, 20.3615, 11.2571)
Luminance0.2036 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338D52 #8D336E
analogous
#418D33 #338D52 #338D7F
triadic
#338D52 #52338D #8D5233
tetradic
#338D52 #33418D #8D336E #8D7F33
square
#338D52 #33418D #8D336E #8D7F33
split-complementary
#338D52 #7F338D #8D3341
monochromatic
#12331E #236038 #338D52 #43BA6C #6FCB8F

Accessibility & contrast

On white

4.14
#338D52 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#338D52 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338D52
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338D52#FFFFFF#000000##000000
##338D521.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D824E
Deuteranopia (green-blind)
#827956
Tritanopia (blue-blind)
#128B7E
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #338d52;
/* rgb */ color: rgb(51, 141, 82);
/* oklch */ color: oklch(57.4% 0.124 151.7);
Tailwind
colors: {
  custom: {
    50: '#75af83',
    500: '#338d52',
    950: '#000000',
  },
}
SCSS
$custom: #338d52;
$custom-light: #75af83;
$custom-dark: #000000;
JSON
{
  "hex": "#338d52",
  "rgb": {
    "r": 51,
    "g": 141,
    "b": 82
  },
  "hsl": {
    "h": 140.667,
    "s": 46.875,
    "l": 37.647
  },
  "oklch": {
    "l": 0.57446,
    "c": 0.12431,
    "h": 151.7
  },
  "luminance": 0.20363
}

Semantic roles & 50–950 ramp

primary
#338D52
secondary
#B36999
accent
#51A9D7
background
#F7FAF8
surface
#EDF5EF
border
#C8CFCA
text
#09100A
muted
#7B7F7C

Preview Lab

Preview with #338D52

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

Preview Lab → · Contrast checker → · Palette generator →

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