#338A52#338A52

#338A52 is a mid, moderate green. Relative luminance 0.195; OKLCH L 56.6% C 0.120 H 152.2°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#338A52
RGBrgb(51, 138, 82)
HSLhsl(141, 46%, 37%)
HSVhsv(141, 63%, 54%)
CMYKcmyk(63%, 0%, 40.6%, 45.9%)
CIE-LABlab(51.25, -39.22, 22.49)
CIE-LCHlch(51.25, 45.22, 150.17°)
OKLaboklab(56.63% -0.1061 0.056)
OKLCHoklch(56.63% 0.12 152.2)
XYZxyz(11.9758, 19.4888, 11.1116)
Luminance0.1949 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338A52 #8A336B
analogous
#408A33 #338A52 #338A7E
triadic
#338A52 #52338A #8A5233
tetradic
#338A52 #33408A #8A336B #8A7E33
square
#338A52 #33408A #8A336B #8A7E33
split-complementary
#338A52 #7E338A #8A3340
monochromatic
#12311D #225D37 #338A52 #44B76D #6EC98F

Accessibility & contrast

On white

4.29
#338A52 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#338A52 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338A52
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338A52#FFFFFF#000000##000000
##338A521.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7F4E
Deuteranopia (green-blind)
#7F7756
Tritanopia (blue-blind)
#14887C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #338a52;
/* rgb */ color: rgb(51, 138, 82);
/* oklch */ color: oklch(56.6% 0.120 152.2);
Tailwind
colors: {
  custom: {
    50: '#74ad83',
    500: '#338a52',
    950: '#000000',
  },
}
SCSS
$custom: #338a52;
$custom-light: #74ad83;
$custom-dark: #000000;
JSON
{
  "hex": "#338a52",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 82
  },
  "hsl": {
    "h": 141.379,
    "s": 46.032,
    "l": 37.059
  },
  "oklch": {
    "l": 0.56633,
    "c": 0.11997,
    "h": 152.2
  },
  "luminance": 0.1949
}

Semantic roles & 50–950 ramp

primary
#338A52
secondary
#B16797
accent
#52A7D6
background
#F7FAF8
surface
#EDF4EF
border
#C8CECA
text
#09100A
muted
#7B7F7C

Preview Lab

Preview with #338A52

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

Preview Lab → · Contrast checker → · Palette generator →

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