#338E40#338E40

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

Color values

HEX#338E40
RGBrgb(51, 142, 64)
HSLhsl(129, 47%, 38%)
HSVhsv(129, 64%, 56%)
CMYKcmyk(64.1%, 0%, 54.9%, 44.3%)
CIE-LABlab(52.31, -43.85, 33.45)
CIE-LCHlch(52.31, 55.15, 142.67°)
OKLaboklab(57.41% -0.1186 0.0802)
OKLCHoklch(57.41% 0.143 145.9)
XYZxyz(11.9629, 20.4188, 8.1603)
Luminance0.2042 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338E40 #8E3381
analogous
#548E33 #338E40 #338E6D
triadic
#338E40 #40338E #8E4033
tetradic
#338E40 #33548E #8E3381 #8E6D33
square
#338E40 #33548E #8E3381 #8E6D33
split-complementary
#338E40 #6D338E #8E3354
monochromatic
#133417 #23612C #338E40 #43BB54 #70CC7D

Accessibility & contrast

On white

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

On black

5.08
#338E40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338E40
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338E40#FFFFFF#000000##000000
##338E401.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#908239
Deuteranopia (green-blind)
#857A46
Tritanopia (blue-blind)
#1C8B7C
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #338e40;
/* rgb */ color: rgb(51, 142, 64);
/* oklch */ color: oklch(57.4% 0.143 145.9);
Tailwind
colors: {
  custom: {
    50: '#75b077',
    500: '#338e40',
    950: '#000000',
  },
}
SCSS
$custom: #338e40;
$custom-light: #75b077;
$custom-dark: #000000;
JSON
{
  "hex": "#338e40",
  "rgb": {
    "r": 51,
    "g": 142,
    "b": 64
  },
  "hsl": {
    "h": 128.571,
    "s": 47.15,
    "l": 37.843
  },
  "oklch": {
    "l": 0.57412,
    "c": 0.14314,
    "h": 145.9
  },
  "luminance": 0.2042
}

Semantic roles & 50–950 ramp

primary
#338E40
secondary
#B469A9
accent
#51C4D7
background
#F7FAF7
surface
#EEF5ED
border
#C9CFC8
text
#091009
muted
#7B7F7B

Preview Lab

Preview with #338E40

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

Preview Lab → · Contrast checker → · Palette generator →

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