#338B5D#338B5D

#338B5D is a mid, moderate green. Relative luminance 0.200; OKLCH L 57.1% C 0.111 H 157.1°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#338B5D
RGBrgb(51, 139, 93)
HSLhsl(149, 46%, 37%)
HSVhsv(149, 63%, 55%)
CMYKcmyk(63.3%, 0%, 33.1%, 45.5%)
CIE-LABlab(51.79, -37.44, 17.04)
CIE-LCHlch(51.79, 41.13, 155.52°)
OKLaboklab(57.14% -0.1019 0.0431)
OKLCHoklch(57.14% 0.111 157.1)
XYZxyz(12.5725, 19.9581, 13.5435)
Luminance0.1996 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338B5D #8B3361
analogous
#358B33 #338B5D #338B89
triadic
#338B5D #5D338B #8B5D33
tetradic
#338B5D #33358B #8B3361 #8B8933
square
#338B5D #33358B #8B3361 #8B8933
split-complementary
#338B5D #89338B #8B3335
monochromatic
#123121 #235E3F #338B5D #43B87B #6ECA9A

Accessibility & contrast

On white

4.21
#338B5D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#338B5D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338B5D
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338B5D#FFFFFF#000000##000000
##338B5D1.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A805A
Deuteranopia (green-blind)
#7E7860
Tritanopia (blue-blind)
#078A7F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #338b5d;
/* rgb */ color: rgb(51, 139, 93);
/* oklch */ color: oklch(57.1% 0.111 157.1);
Tailwind
colors: {
  custom: {
    50: '#74ad8b',
    500: '#338b5d',
    950: '#000000',
  },
}
SCSS
$custom: #338b5d;
$custom-light: #74ad8b;
$custom-dark: #000000;
JSON
{
  "hex": "#338b5d",
  "rgb": {
    "r": 51,
    "g": 139,
    "b": 93
  },
  "hsl": {
    "h": 148.636,
    "s": 46.316,
    "l": 37.255
  },
  "oklch": {
    "l": 0.57141,
    "c": 0.1106,
    "h": 157.1
  },
  "luminance": 0.19959
}

Semantic roles & 50–950 ramp

primary
#338B5D
secondary
#B2688F
accent
#5297D6
background
#F7FAF8
surface
#EDF4F0
border
#C8CECB
text
#09100C
muted
#7B7F7D

Preview Lab

Preview with #338B5D

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

Preview Lab → · Contrast checker → · Palette generator →

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