#338E5D#338E5D

#338E5D is a mid, moderate green. Relative luminance 0.208; OKLCH L 57.9% C 0.115 H 156.2°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#338E5D
RGBrgb(51, 142, 93)
HSLhsl(148, 47%, 38%)
HSVhsv(148, 64%, 56%)
CMYKcmyk(64.1%, 0%, 34.5%, 44.3%)
CIE-LABlab(52.77, -38.73, 18.38)
CIE-LCHlch(52.77, 42.87, 154.62°)
OKLaboklab(57.95% -0.1052 0.0463)
OKLCHoklch(57.95% 0.115 156.2)
XYZxyz(13.0129, 20.8388, 13.6903)
Luminance0.2084 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338E5D #8E3364
analogous
#378E33 #338E5D #338E8A
triadic
#338E5D #5D338E #8E5D33
tetradic
#338E5D #33378E #8E3364 #8E8A33
square
#338E5D #33378E #8E3364 #8E8A33
split-complementary
#338E5D #8A338E #8E3337
monochromatic
#133422 #236140 #338E5D #43BB7A #70CC9A

Accessibility & contrast

On white

4.06
#338E5D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#338E5D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338E5D
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338E5D#FFFFFF#000000##000000
##338E5D1.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D835A
Deuteranopia (green-blind)
#817B60
Tritanopia (blue-blind)
#048D81
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #338e5d;
/* rgb */ color: rgb(51, 142, 93);
/* oklch */ color: oklch(57.9% 0.115 156.2);
Tailwind
colors: {
  custom: {
    50: '#75b08b',
    500: '#338e5d',
    950: '#000000',
  },
}
SCSS
$custom: #338e5d;
$custom-light: #75b08b;
$custom-dark: #000000;
JSON
{
  "hex": "#338e5d",
  "rgb": {
    "r": 51,
    "g": 142,
    "b": 93
  },
  "hsl": {
    "h": 147.692,
    "s": 47.15,
    "l": 37.843
  },
  "oklch": {
    "l": 0.57947,
    "c": 0.11496,
    "h": 156.2
  },
  "luminance": 0.2084
}

Semantic roles & 50–950 ramp

primary
#338E5D
secondary
#B46991
accent
#5199D7
background
#F7FAF8
surface
#EDF5F0
border
#C8CFCB
text
#09100C
muted
#7B7F7D

Preview Lab

Preview with #338E5D

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

Preview Lab → · Contrast checker → · Palette generator →

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