#338E42#338E42

#338E42 is a mid, vivid green. Relative luminance 0.204; OKLCH L 57.4% C 0.141 H 146.4°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#338E42
RGBrgb(51, 142, 66)
HSLhsl(130, 47%, 38%)
HSVhsv(130, 64%, 56%)
CMYKcmyk(64.1%, 0%, 53.5%, 44.3%)
CIE-LABlab(52.33, -43.56, 32.46)
CIE-LCHlch(52.33, 54.32, 143.31°)
OKLaboklab(57.44% -0.1177 0.0781)
OKLCHoklch(57.44% 0.141 146.4)
XYZxyz(12.0208, 20.4420, 8.4654)
Luminance0.2044 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338E42 #8E337F
analogous
#518E33 #338E42 #338E6F
triadic
#338E42 #42338E #8E4233
tetradic
#338E42 #33518E #8E337F #8E6F33
square
#338E42 #33518E #8E337F #8E6F33
split-complementary
#338E42 #6F338E #8E3351
monochromatic
#133418 #23612D #338E42 #43BB57 #70CC7F

Accessibility & contrast

On white

4.13
#338E42 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#338E42 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338E42
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338E42#FFFFFF#000000##000000
##338E421.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#90823B
Deuteranopia (green-blind)
#847A48
Tritanopia (blue-blind)
#1B8B7D
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #338e42;
/* rgb */ color: rgb(51, 142, 66);
/* oklch */ color: oklch(57.4% 0.141 146.4);
Tailwind
colors: {
  custom: {
    50: '#75b078',
    500: '#338e42',
    950: '#000000',
  },
}
SCSS
$custom: #338e42;
$custom-light: #75b078;
$custom-dark: #000000;
JSON
{
  "hex": "#338e42",
  "rgb": {
    "r": 51,
    "g": 142,
    "b": 66
  },
  "hsl": {
    "h": 129.89,
    "s": 47.15,
    "l": 37.843
  },
  "oklch": {
    "l": 0.57442,
    "c": 0.14128,
    "h": 146.4
  },
  "luminance": 0.20443
}

Semantic roles & 50–950 ramp

primary
#338E42
secondary
#B469A7
accent
#51C1D7
background
#F7FAF7
surface
#EEF5ED
border
#C9CFC8
text
#091009
muted
#7B7F7B

Preview Lab

Preview with #338E42

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

Preview Lab → · Contrast checker → · Palette generator →

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