#338E54#338E54

#338E54 is a mid, vivid green. Relative luminance 0.207; OKLCH L 57.8% C 0.124 H 152.3°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#338E54
RGBrgb(51, 142, 84)
HSLhsl(142, 47%, 38%)
HSVhsv(142, 64%, 56%)
CMYKcmyk(64.1%, 0%, 40.8%, 44.3%)
CIE-LABlab(52.61, -40.52, 23.17)
CIE-LCHlch(52.61, 46.68, 150.24°)
OKLaboklab(57.76% -0.1096 0.0576)
OKLCHoklch(57.76% 0.124 152.3)
XYZxyz(12.6375, 20.6886, 11.7131)
Luminance0.2069 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338E54 #8E336D
analogous
#408E33 #338E54 #338E81
triadic
#338E54 #54338E #8E5433
tetradic
#338E54 #33408E #8E336D #8E8133
square
#338E54 #33408E #8E336D #8E8133
split-complementary
#338E54 #81338E #8E3340
monochromatic
#13341F #236139 #338E54 #43BB6F #70CC91

Accessibility & contrast

On white

4.09
#338E54 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#338E54 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338E54
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338E54#FFFFFF#000000##000000
##338E541.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E8350
Deuteranopia (green-blind)
#827A58
Tritanopia (blue-blind)
#0F8C80
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #338e54;
/* rgb */ color: rgb(51, 142, 84);
/* oklch */ color: oklch(57.8% 0.124 152.3);
Tailwind
colors: {
  custom: {
    50: '#75b084',
    500: '#338e54',
    950: '#000000',
  },
}
SCSS
$custom: #338e54;
$custom-light: #75b084;
$custom-dark: #000000;
JSON
{
  "hex": "#338e54",
  "rgb": {
    "r": 51,
    "g": 142,
    "b": 84
  },
  "hsl": {
    "h": 141.758,
    "s": 47.15,
    "l": 37.843
  },
  "oklch": {
    "l": 0.57756,
    "c": 0.12378,
    "h": 152.3
  },
  "luminance": 0.2069
}

Semantic roles & 50–950 ramp

primary
#338E54
secondary
#B46999
accent
#51A6D7
background
#F7FAF8
surface
#EDF5EF
border
#C8CFCA
text
#09100B
muted
#7B7F7C

Preview Lab

Preview with #338E54

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

Preview Lab → · Contrast checker → · Palette generator →

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