#338F52#338F52

#338F52 is a mid, vivid green. Relative luminance 0.210; OKLCH L 58.0% C 0.127 H 151.3°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#338F52
RGBrgb(51, 143, 82)
HSLhsl(140, 47%, 38%)
HSVhsv(140, 64%, 56%)
CMYKcmyk(64.3%, 0%, 42.7%, 43.9%)
CIE-LABlab(52.90, -41.31, 24.65)
CIE-LCHlch(52.90, 48.11, 149.17°)
OKLaboklab(57.99% -0.1116 0.061)
OKLCHoklch(57.99% 0.127 151.3)
XYZxyz(12.7097, 20.9566, 11.3562)
Luminance0.2096 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338F52 #8F3370
analogous
#428F33 #338F52 #338F80
triadic
#338F52 #52338F #8F5233
tetradic
#338F52 #33428F #8F3370 #8F8033
square
#338F52 #33428F #8F3370 #8F8033
split-complementary
#338F52 #80338F #8F3342
monochromatic
#13351E #236238 #338F52 #43BC6C #70CC8F

Accessibility & contrast

On white

4.04
#338F52 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#338F52 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338F52
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338F52#FFFFFF#000000##000000
##338F521.004.045.195.19
#FFFFFF4.041.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#90834E
Deuteranopia (green-blind)
#847B56
Tritanopia (blue-blind)
#118D80
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #338f52;
/* rgb */ color: rgb(51, 143, 82);
/* oklch */ color: oklch(58.0% 0.127 151.3);
Tailwind
colors: {
  custom: {
    50: '#75b083',
    500: '#338f52',
    950: '#000000',
  },
}
SCSS
$custom: #338f52;
$custom-light: #75b083;
$custom-dark: #000000;
JSON
{
  "hex": "#338f52",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 82
  },
  "hsl": {
    "h": 140.217,
    "s": 47.423,
    "l": 38.039
  },
  "oklch": {
    "l": 0.57988,
    "c": 0.1272,
    "h": 151.3
  },
  "luminance": 0.20958
}

Semantic roles & 50–950 ramp

primary
#338F52
secondary
#B46A9B
accent
#51AAD7
background
#F7FAF8
surface
#EDF5EF
border
#C8CFCA
text
#09110A
muted
#7B807C

Preview Lab

Preview with #338F52

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

Preview Lab → · Contrast checker → · Palette generator →

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