#338F5D#338F5D

#338F5D is a mid, moderate green. Relative luminance 0.211; OKLCH L 58.2% C 0.116 H 156.0°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#338F5D
RGBrgb(51, 143, 93)
HSLhsl(147, 47%, 38%)
HSVhsv(147, 64%, 56%)
CMYKcmyk(64.3%, 0%, 35%, 43.9%)
CIE-LABlab(53.10, -39.16, 18.82)
CIE-LCHlch(53.10, 43.45, 154.33°)
OKLaboklab(58.22% -0.1063 0.0474)
OKLCHoklch(58.22% 0.116 156)
XYZxyz(13.1623, 21.1377, 13.7401)
Luminance0.2114 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338F5D #8F3365
analogous
#378F33 #338F5D #338F8B
triadic
#338F5D #5D338F #8F5D33
tetradic
#338F5D #33378F #8F3365 #8F8B33
square
#338F5D #33378F #8F3365 #8F8B33
split-complementary
#338F5D #8B338F #8F3337
monochromatic
#133522 #236240 #338F5D #43BC7A #70CC9A

Accessibility & contrast

On white

4.02
#338F5D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#338F5D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338F5D
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338F5D#FFFFFF#000000##000000
##338F5D1.004.025.235.23
#FFFFFF4.021.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E845A
Deuteranopia (green-blind)
#827B60
Tritanopia (blue-blind)
#038E82
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #338f5d;
/* rgb */ color: rgb(51, 143, 93);
/* oklch */ color: oklch(58.2% 0.116 156.0);
Tailwind
colors: {
  custom: {
    50: '#75b08b',
    500: '#338f5d',
    950: '#000000',
  },
}
SCSS
$custom: #338f5d;
$custom-light: #75b08b;
$custom-dark: #000000;
JSON
{
  "hex": "#338f5d",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 93
  },
  "hsl": {
    "h": 147.391,
    "s": 47.423,
    "l": 38.039
  },
  "oklch": {
    "l": 0.58215,
    "c": 0.11639,
    "h": 156
  },
  "luminance": 0.21139
}

Semantic roles & 50–950 ramp

primary
#338F5D
secondary
#B46A92
accent
#519AD7
background
#F7FAF8
surface
#EDF5F0
border
#C8CFCB
text
#09110C
muted
#7B807D

Preview Lab

Preview with #338F5D

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

Preview Lab → · Contrast checker → · Palette generator →

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