#338D5B#338D5B

#338D5B is a mid, moderate green. Relative luminance 0.205; OKLCH L 57.6% C 0.115 H 155.5°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#338D5B
RGBrgb(51, 141, 91)
HSLhsl(147, 47%, 38%)
HSVhsv(147, 64%, 55%)
CMYKcmyk(63.8%, 0%, 35.5%, 44.7%)
CIE-LABlab(52.41, -38.72, 19.01)
CIE-LCHlch(52.41, 43.13, 153.85°)
OKLaboklab(57.63% -0.1051 0.0478)
OKLCHoklch(57.63% 0.115 155.5)
XYZxyz(12.7773, 20.5076, 13.1805)
Luminance0.2051 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338D5B #8D3365
analogous
#388D33 #338D5B #338D88
triadic
#338D5B #5B338D #8D5B33
tetradic
#338D5B #33388D #8D3365 #8D8833
square
#338D5B #33388D #8D3365 #8D8833
split-complementary
#338D5B #88338D #8D3338
monochromatic
#123321 #23603E #338D5B #43BA78 #6FCB98

Accessibility & contrast

On white

4.12
#338D5B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#338D5B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338D5B
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338D5B#FFFFFF#000000##000000
##338D5B1.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C8258
Deuteranopia (green-blind)
#807A5E
Tritanopia (blue-blind)
#088C80
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #338d5b;
/* rgb */ color: rgb(51, 141, 91);
/* oklch */ color: oklch(57.6% 0.115 155.5);
Tailwind
colors: {
  custom: {
    50: '#75af89',
    500: '#338d5b',
    950: '#000000',
  },
}
SCSS
$custom: #338d5b;
$custom-light: #75af89;
$custom-dark: #000000;
JSON
{
  "hex": "#338d5b",
  "rgb": {
    "r": 51,
    "g": 141,
    "b": 91
  },
  "hsl": {
    "h": 146.667,
    "s": 46.875,
    "l": 37.647
  },
  "oklch": {
    "l": 0.57633,
    "c": 0.11545,
    "h": 155.5
  },
  "luminance": 0.20509
}

Semantic roles & 50–950 ramp

primary
#338D5B
secondary
#B36992
accent
#519BD7
background
#F7FAF8
surface
#EDF4F0
border
#C8CECB
text
#09100B
muted
#7B7F7C

Preview Lab

Preview with #338D5B

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

Preview Lab → · Contrast checker → · Palette generator →

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