#339B40#339B40

#339B40 is a mid, vivid green. Relative luminance 0.245; OKLCH L 61.0% C 0.160 H 145.3°. Best body text is #000000 at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#339B40
RGBrgb(51, 155, 64)
HSLhsl(128, 50%, 40%)
HSVhsv(128, 67%, 61%)
CMYKcmyk(67.1%, 0%, 58.7%, 39.2%)
CIE-LABlab(56.60, -48.80, 38.56)
CIE-LCHlch(56.60, 62.20, 141.69°)
OKLaboklab(60.96% -0.132 0.0914)
OKLCHoklch(60.96% 0.16 145.3)
XYZxyz(14.0111, 24.5152, 8.8430)
Luminance0.2452 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#339B40 #9B338E
analogous
#5A9B33 #339B40 #339B74
triadic
#339B40 #40339B #9B4033
tetradic
#339B40 #335A9B #9B338E #9B7433
square
#339B40 #335A9B #9B338E #9B7433
split-complementary
#339B40 #74339B #9B335A
monochromatic
#153F1A #246D2D #339B40 #48C358 #76D282

Accessibility & contrast

On white

3.56
#339B40 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.90
#339B40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #339B40
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##339B40#FFFFFF#000000##000000
##339B401.003.565.905.90
#FFFFFF3.561.0021.0021.00
#0000005.9021.001.001.00
##0000005.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#9E8D37
Deuteranopia (green-blind)
#918447
Tritanopia (blue-blind)
#149787
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #339b40;
/* rgb */ color: rgb(51, 155, 64);
/* oklch */ color: oklch(61.0% 0.160 145.3);
Tailwind
colors: {
  custom: {
    50: '#78b978',
    500: '#339b40',
    950: '#000000',
  },
}
SCSS
$custom: #339b40;
$custom-light: #78b978;
$custom-dark: #000000;
JSON
{
  "hex": "#339b40",
  "rgb": {
    "r": 51,
    "g": 155,
    "b": 64
  },
  "hsl": {
    "h": 127.5,
    "s": 50.485,
    "l": 40.392
  },
  "oklch": {
    "l": 0.60956,
    "c": 0.16049,
    "h": 145.3
  },
  "luminance": 0.24517
}

Semantic roles & 50–950 ramp

primary
#339B40
secondary
#BA6FB1
accent
#4EC8DA
background
#F7FBF7
surface
#EEF6ED
border
#C9D0C8
text
#0A1209
muted
#7C817B

Preview Lab

Preview with #339B40

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

Preview Lab → · Contrast checker → · Palette generator →

#339B40 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva