#338E5F#338E5F

#338E5F is a mid, moderate green. Relative luminance 0.209; OKLCH L 58.0% C 0.113 H 157.2°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#338E5F
RGBrgb(51, 142, 95)
HSLhsl(149, 47%, 38%)
HSVhsv(149, 64%, 56%)
CMYKcmyk(64.1%, 0%, 33.1%, 44.3%)
CIE-LABlab(52.81, -38.31, 17.31)
CIE-LCHlch(52.81, 42.04, 155.69°)
OKLaboklab(57.99% -0.1042 0.0437)
OKLCHoklch(57.99% 0.113 157.2)
XYZxyz(13.1026, 20.8747, 14.1630)
Luminance0.2088 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338E5F #8E3362
analogous
#358E33 #338E5F #338E8C
triadic
#338E5F #5F338E #8E5F33
tetradic
#338E5F #33358E #8E3362 #8E8C33
square
#338E5F #33358E #8E3362 #8E8C33
split-complementary
#338E5F #8C338E #8E3335
monochromatic
#133423 #236141 #338E5F #43BB7D #70CC9C

Accessibility & contrast

On white

4.06
#338E5F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#338E5F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338E5F
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338E5F#FFFFFF#000000##000000
##338E5F1.004.065.185.18
#FFFFFF4.061.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D835C
Deuteranopia (green-blind)
#817B62
Tritanopia (blue-blind)
#018D82
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #338e5f;
/* rgb */ color: rgb(51, 142, 95);
/* oklch */ color: oklch(58.0% 0.113 157.2);
Tailwind
colors: {
  custom: {
    50: '#75b08c',
    500: '#338e5f',
    950: '#000000',
  },
}
SCSS
$custom: #338e5f;
$custom-light: #75b08c;
$custom-dark: #000000;
JSON
{
  "hex": "#338e5f",
  "rgb": {
    "r": 51,
    "g": 142,
    "b": 95
  },
  "hsl": {
    "h": 149.011,
    "s": 47.15,
    "l": 37.843
  },
  "oklch": {
    "l": 0.57992,
    "c": 0.11303,
    "h": 157.2
  },
  "luminance": 0.20876
}

Semantic roles & 50–950 ramp

primary
#338E5F
secondary
#B46990
accent
#5196D7
background
#F7FAF8
surface
#EDF5F0
border
#C8CFCB
text
#09100C
muted
#7B7F7D

Preview Lab

Preview with #338E5F

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

Preview Lab → · Contrast checker → · Palette generator →

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