#338B58#338B58

#338B58 is a mid, moderate green. Relative luminance 0.199; OKLCH L 57.0% C 0.115 H 154.6°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#338B58
RGBrgb(51, 139, 88)
HSLhsl(145, 46%, 37%)
HSVhsv(145, 63%, 55%)
CMYKcmyk(63.3%, 0%, 36.7%, 45.5%)
CIE-LABlab(51.69, -38.47, 19.73)
CIE-LCHlch(51.69, 43.24, 152.85°)
OKLaboklab(57.03% -0.1043 0.0495)
OKLCHoklch(57.03% 0.115 154.6)
XYZxyz(12.3583, 19.8724, 12.4151)
Luminance0.1987 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338B58 #8B3366
analogous
#3A8B33 #338B58 #338B84
triadic
#338B58 #58338B #8B5833
tetradic
#338B58 #333A8B #8B3366 #8B8433
square
#338B58 #333A8B #8B3366 #8B8433
split-complementary
#338B58 #84338B #8B333A
monochromatic
#12311F #235E3C #338B58 #43B874 #6ECA95

Accessibility & contrast

On white

4.22
#338B58 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#338B58 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338B58
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338B58#FFFFFF#000000##000000
##338B581.004.224.974.97
#FFFFFF4.221.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B8055
Deuteranopia (green-blind)
#7F785B
Tritanopia (blue-blind)
#0E897E
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #338b58;
/* rgb */ color: rgb(51, 139, 88);
/* oklch */ color: oklch(57.0% 0.115 154.6);
Tailwind
colors: {
  custom: {
    50: '#74ad87',
    500: '#338b58',
    950: '#000000',
  },
}
SCSS
$custom: #338b58;
$custom-light: #74ad87;
$custom-dark: #000000;
JSON
{
  "hex": "#338b58",
  "rgb": {
    "r": 51,
    "g": 139,
    "b": 88
  },
  "hsl": {
    "h": 145.227,
    "s": 46.316,
    "l": 37.255
  },
  "oklch": {
    "l": 0.57029,
    "c": 0.11547,
    "h": 154.6
  },
  "luminance": 0.19874
}

Semantic roles & 50–950 ramp

primary
#338B58
secondary
#B26893
accent
#529ED6
background
#F7FAF8
surface
#EDF4EF
border
#C8CECA
text
#09100B
muted
#7B7F7C

Preview Lab

Preview with #338B58

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

Preview Lab → · Contrast checker → · Palette generator →

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