#339A40#339A40

#339A40 is a mid, vivid green. Relative luminance 0.242; OKLCH L 60.7% C 0.159 H 145.3°. Best body text is #000000 at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#339A40
RGBrgb(51, 154, 64)
HSLhsl(128, 50%, 40%)
HSVhsv(128, 67%, 60%)
CMYKcmyk(66.9%, 0%, 58.4%, 39.6%)
CIE-LABlab(56.27, -48.43, 38.17)
CIE-LCHlch(56.27, 61.67, 141.75°)
OKLaboklab(60.69% -0.1309 0.0905)
OKLCHoklch(60.69% 0.159 145.3)
XYZxyz(13.8453, 24.1837, 8.7878)
Luminance0.2419 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#339A40 #9A338D
analogous
#599A33 #339A40 #339A74
triadic
#339A40 #40339A #9A4033
tetradic
#339A40 #33599A #9A338D #9A7433
square
#339A40 #33599A #9A338D #9A7433
split-complementary
#339A40 #74339A #9A3359
monochromatic
#153E1A #246C2D #339A40 #48C257 #76D281

Accessibility & contrast

On white

3.60
#339A40 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.84
#339A40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #339A40
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##339A40#FFFFFF#000000##000000
##339A401.003.605.845.84
#FFFFFF3.601.0021.0021.00
#0000005.8421.001.001.00
##0000005.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8C37
Deuteranopia (green-blind)
#908447
Tritanopia (blue-blind)
#159686
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #339a40;
/* rgb */ color: rgb(51, 154, 64);
/* oklch */ color: oklch(60.7% 0.159 145.3);
Tailwind
colors: {
  custom: {
    50: '#78b978',
    500: '#339a40',
    950: '#000000',
  },
}
SCSS
$custom: #339a40;
$custom-light: #78b978;
$custom-dark: #000000;
JSON
{
  "hex": "#339a40",
  "rgb": {
    "r": 51,
    "g": 154,
    "b": 64
  },
  "hsl": {
    "h": 127.573,
    "s": 50.244,
    "l": 40.196
  },
  "oklch": {
    "l": 0.60685,
    "c": 0.15918,
    "h": 145.3
  },
  "luminance": 0.24185
}

Semantic roles & 50–950 ramp

primary
#339A40
secondary
#BA6FB0
accent
#4EC8DA
background
#F7FBF7
surface
#EEF6ED
border
#C9D0C8
text
#0A1109
muted
#7C807B

Preview Lab

Preview with #339A40

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

Preview Lab → · Contrast checker → · Palette generator →

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