#338A58#338A58

#338A58 is a mid, moderate green. Relative luminance 0.196; OKLCH L 56.8% C 0.114 H 154.9°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#338A58
RGBrgb(51, 138, 88)
HSLhsl(146, 46%, 37%)
HSVhsv(146, 63%, 54%)
CMYKcmyk(63%, 0%, 36.2%, 45.9%)
CIE-LABlab(51.36, -38.05, 19.29)
CIE-LCHlch(51.36, 42.65, 153.12°)
OKLaboklab(56.76% -0.1032 0.0485)
OKLCHoklch(56.76% 0.114 154.9)
XYZxyz(12.2141, 19.5841, 12.3671)
Luminance0.1958 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338A58 #8A3365
analogous
#3A8A33 #338A58 #338A84
triadic
#338A58 #58338A #8A5833
tetradic
#338A58 #333A8A #8A3365 #8A8433
square
#338A58 #333A8A #8A3365 #8A8433
split-complementary
#338A58 #84338A #8A333A
monochromatic
#12311F #225D3C #338A58 #44B774 #6EC995

Accessibility & contrast

On white

4.27
#338A58 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#338A58 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338A58
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338A58#FFFFFF#000000##000000
##338A581.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7F55
Deuteranopia (green-blind)
#7E775B
Tritanopia (blue-blind)
#0F897D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #338a58;
/* rgb */ color: rgb(51, 138, 88);
/* oklch */ color: oklch(56.8% 0.114 154.9);
Tailwind
colors: {
  custom: {
    50: '#74ad87',
    500: '#338a58',
    950: '#000000',
  },
}
SCSS
$custom: #338a58;
$custom-light: #74ad87;
$custom-dark: #000000;
JSON
{
  "hex": "#338a58",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 88
  },
  "hsl": {
    "h": 145.517,
    "s": 46.032,
    "l": 37.059
  },
  "oklch": {
    "l": 0.56759,
    "c": 0.11401,
    "h": 154.9
  },
  "luminance": 0.19585
}

Semantic roles & 50–950 ramp

primary
#338A58
secondary
#B16792
accent
#529ED6
background
#F7FAF8
surface
#EDF4EF
border
#C8CECA
text
#09100B
muted
#7B7F7C

Preview Lab

Preview with #338A58

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

Preview Lab → · Contrast checker → · Palette generator →

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