#338A57#338A57

#338A57 is a mid, moderate green. Relative luminance 0.196; OKLCH L 56.7% C 0.115 H 154.4°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#338A57
RGBrgb(51, 138, 87)
HSLhsl(145, 46%, 37%)
HSVhsv(145, 63%, 54%)
CMYKcmyk(63%, 0%, 37%, 45.9%)
CIE-LABlab(51.34, -38.25, 19.82)
CIE-LCHlch(51.34, 43.08, 152.60°)
OKLaboklab(56.74% -0.1037 0.0497)
OKLCHoklch(56.74% 0.115 154.4)
XYZxyz(12.1730, 19.5677, 12.1504)
Luminance0.1957 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338A57 #8A3366
analogous
#3A8A33 #338A57 #338A83
triadic
#338A57 #57338A #8A5733
tetradic
#338A57 #333A8A #8A3366 #8A8333
square
#338A57 #333A8A #8A3366 #8A8333
split-complementary
#338A57 #83338A #8A333A
monochromatic
#12311F #225D3B #338A57 #44B773 #6EC994

Accessibility & contrast

On white

4.27
#338A57 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#338A57 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338A57
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338A57#FFFFFF#000000##000000
##338A571.004.274.914.91
#FFFFFF4.271.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7F54
Deuteranopia (green-blind)
#7E775A
Tritanopia (blue-blind)
#10887D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #338a57;
/* rgb */ color: rgb(51, 138, 87);
/* oklch */ color: oklch(56.7% 0.115 154.4);
Tailwind
colors: {
  custom: {
    50: '#74ad87',
    500: '#338a57',
    950: '#000000',
  },
}
SCSS
$custom: #338a57;
$custom-light: #74ad87;
$custom-dark: #000000;
JSON
{
  "hex": "#338a57",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 87
  },
  "hsl": {
    "h": 144.828,
    "s": 46.032,
    "l": 37.059
  },
  "oklch": {
    "l": 0.56737,
    "c": 0.11499,
    "h": 154.4
  },
  "luminance": 0.19569
}

Semantic roles & 50–950 ramp

primary
#338A57
secondary
#B16793
accent
#529FD6
background
#F7FAF8
surface
#EDF4EF
border
#C8CECA
text
#09100B
muted
#7B7F7C

Preview Lab

Preview with #338A57

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

Preview Lab → · Contrast checker → · Palette generator →

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