#338B52#338B52

#338B52 is a mid, vivid green. Relative luminance 0.198; OKLCH L 56.9% C 0.121 H 152.0°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#338B52
RGBrgb(51, 139, 82)
HSLhsl(141, 46%, 37%)
HSVhsv(141, 63%, 55%)
CMYKcmyk(63.3%, 0%, 41%, 45.5%)
CIE-LABlab(51.58, -39.65, 22.93)
CIE-LCHlch(51.58, 45.80, 149.96°)
OKLaboklab(56.9% -0.1072 0.057)
OKLCHoklch(56.9% 0.121 152)
XYZxyz(12.1199, 19.7770, 11.1596)
Luminance0.1978 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338B52 #8B336C
analogous
#408B33 #338B52 #338B7E
triadic
#338B52 #52338B #8B5233
tetradic
#338B52 #33408B #8B336C #8B7E33
square
#338B52 #33408B #8B336C #8B7E33
split-complementary
#338B52 #7E338B #8B3340
monochromatic
#12311D #235E38 #338B52 #43B86C #6ECA8F

Accessibility & contrast

On white

4.24
#338B52 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#338B52 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338B52
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338B52#FFFFFF#000000##000000
##338B521.004.244.964.96
#FFFFFF4.241.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B804E
Deuteranopia (green-blind)
#807856
Tritanopia (blue-blind)
#13897D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #338b52;
/* rgb */ color: rgb(51, 139, 82);
/* oklch */ color: oklch(56.9% 0.121 152.0);
Tailwind
colors: {
  custom: {
    50: '#74ae83',
    500: '#338b52',
    950: '#000000',
  },
}
SCSS
$custom: #338b52;
$custom-light: #74ae83;
$custom-dark: #000000;
JSON
{
  "hex": "#338b52",
  "rgb": {
    "r": 51,
    "g": 139,
    "b": 82
  },
  "hsl": {
    "h": 141.136,
    "s": 46.316,
    "l": 37.255
  },
  "oklch": {
    "l": 0.56904,
    "c": 0.12142,
    "h": 152
  },
  "luminance": 0.19778
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #338B52

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

Preview Lab → · Contrast checker → · Palette generator →

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