#338B57#338B57

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

Color values

HEX#338B57
RGBrgb(51, 139, 87)
HSLhsl(145, 46%, 37%)
HSVhsv(145, 63%, 55%)
CMYKcmyk(63.3%, 0%, 37.4%, 45.5%)
CIE-LABlab(51.67, -38.67, 20.26)
CIE-LCHlch(51.67, 43.66, 152.35°)
OKLaboklab(57.01% -0.1048 0.0508)
OKLCHoklch(57.01% 0.116 154.2)
XYZxyz(12.3171, 19.8559, 12.1984)
Luminance0.1986 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338B57 #8B3367
analogous
#3B8B33 #338B57 #338B83
triadic
#338B57 #57338B #8B5733
tetradic
#338B57 #333B8B #8B3367 #8B8333
square
#338B57 #333B8B #8B3367 #8B8333
split-complementary
#338B57 #83338B #8B333B
monochromatic
#12311F #235E3B #338B57 #43B873 #6ECA94

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##338B57#FFFFFF#000000##000000
##338B571.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)
#8B8054
Deuteranopia (green-blind)
#7F785A
Tritanopia (blue-blind)
#0F897E
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #338b57;
/* rgb */ color: rgb(51, 139, 87);
/* oklch */ color: oklch(57.0% 0.116 154.2);
Tailwind
colors: {
  custom: {
    50: '#74ae87',
    500: '#338b57',
    950: '#000000',
  },
}
SCSS
$custom: #338b57;
$custom-light: #74ae87;
$custom-dark: #000000;
JSON
{
  "hex": "#338b57",
  "rgb": {
    "r": 51,
    "g": 139,
    "b": 87
  },
  "hsl": {
    "h": 144.545,
    "s": 46.316,
    "l": 37.255
  },
  "oklch": {
    "l": 0.57007,
    "c": 0.11645,
    "h": 154.2
  },
  "luminance": 0.19857
}

Semantic roles & 50–950 ramp

primary
#338B57
secondary
#B26894
accent
#52A0D6
background
#F7FAF8
surface
#EDF4EF
border
#C8CECA
text
#09100B
muted
#7B7F7C

Preview Lab

Preview with #338B57

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

Preview Lab → · Contrast checker → · Palette generator →

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