#338F56#338F56

#338F56 is a mid, vivid green. Relative luminance 0.210; OKLCH L 58.1% C 0.123 H 152.9°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#338F56
RGBrgb(51, 143, 86)
HSLhsl(143, 47%, 38%)
HSVhsv(143, 64%, 56%)
CMYKcmyk(64.3%, 0%, 39.9%, 43.9%)
CIE-LABlab(52.97, -40.56, 22.54)
CIE-LCHlch(52.97, 46.40, 150.93°)
OKLaboklab(58.07% -0.1097 0.0562)
OKLCHoklch(58.07% 0.123 152.9)
XYZxyz(12.8664, 21.0193, 12.1814)
Luminance0.2102 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338F56 #8F336C
analogous
#3E8F33 #338F56 #338F84
triadic
#338F56 #56338F #8F5633
tetradic
#338F56 #333E8F #8F336C #8F8433
square
#338F56 #333E8F #8F336C #8F8433
split-complementary
#338F56 #84338F #8F333E
monochromatic
#133520 #23623B #338F56 #43BC71 #70CC93

Accessibility & contrast

On white

4.04
#338F56 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#338F56 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338F56
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338F56#FFFFFF#000000##000000
##338F561.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F8452
Deuteranopia (green-blind)
#837B5A
Tritanopia (blue-blind)
#0C8D81
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #338f56;
/* rgb */ color: rgb(51, 143, 86);
/* oklch */ color: oklch(58.1% 0.123 152.9);
Tailwind
colors: {
  custom: {
    50: '#75b086',
    500: '#338f56',
    950: '#000000',
  },
}
SCSS
$custom: #338f56;
$custom-light: #75b086;
$custom-dark: #000000;
JSON
{
  "hex": "#338f56",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 86
  },
  "hsl": {
    "h": 142.826,
    "s": 47.423,
    "l": 38.039
  },
  "oklch": {
    "l": 0.58067,
    "c": 0.12325,
    "h": 152.9
  },
  "luminance": 0.21021
}

Semantic roles & 50–950 ramp

primary
#338F56
secondary
#B46A98
accent
#51A4D7
background
#F7FAF8
surface
#EDF5EF
border
#C8CFCA
text
#09110B
muted
#7B807C

Preview Lab

Preview with #338F56

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

Preview Lab → · Contrast checker → · Palette generator →

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