#338B56#338B56

#338B56 is a mid, moderate green. Relative luminance 0.198; OKLCH L 57.0% C 0.117 H 153.7°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#338B56
RGBrgb(51, 139, 86)
HSLhsl(144, 46%, 37%)
HSVhsv(144, 63%, 55%)
CMYKcmyk(63.3%, 0%, 38.1%, 45.5%)
CIE-LABlab(51.66, -38.87, 20.80)
CIE-LCHlch(51.66, 44.09, 151.85°)
OKLaboklab(56.99% -0.1053 0.052)
OKLCHoklch(56.99% 0.117 153.7)
XYZxyz(12.2766, 19.8397, 11.9848)
Luminance0.1984 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338B56 #8B3368
analogous
#3C8B33 #338B56 #338B82
triadic
#338B56 #56338B #8B5633
tetradic
#338B56 #333C8B #8B3368 #8B8233
square
#338B56 #333C8B #8B3368 #8B8233
split-complementary
#338B56 #82338B #8B333C
monochromatic
#12311F #235E3A #338B56 #43B872 #6ECA93

Accessibility & contrast

On white

4.23
#338B56 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#338B56 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338B56
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338B56#FFFFFF#000000##000000
##338B561.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B8052
Deuteranopia (green-blind)
#7F7859
Tritanopia (blue-blind)
#10897E
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #338b56;
/* rgb */ color: rgb(51, 139, 86);
/* oklch */ color: oklch(57.0% 0.117 153.7);
Tailwind
colors: {
  custom: {
    50: '#74ae86',
    500: '#338b56',
    950: '#000000',
  },
}
SCSS
$custom: #338b56;
$custom-light: #74ae86;
$custom-dark: #000000;
JSON
{
  "hex": "#338b56",
  "rgb": {
    "r": 51,
    "g": 139,
    "b": 86
  },
  "hsl": {
    "h": 143.864,
    "s": 46.316,
    "l": 37.255
  },
  "oklch": {
    "l": 0.56986,
    "c": 0.11744,
    "h": 153.7
  },
  "luminance": 0.19841
}

Semantic roles & 50–950 ramp

primary
#338B56
secondary
#B26894
accent
#52A1D6
background
#F7FAF8
surface
#EDF4EF
border
#C8CECA
text
#09100B
muted
#7B7F7C

Preview Lab

Preview with #338B56

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

Preview Lab → · Contrast checker → · Palette generator →

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