#339A42#339A42

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

Color values

HEX#339A42
RGBrgb(51, 154, 66)
HSLhsl(129, 50%, 40%)
HSVhsv(129, 67%, 60%)
CMYKcmyk(66.9%, 0%, 57.1%, 39.6%)
CIE-LABlab(56.29, -48.16, 37.23)
CIE-LCHlch(56.29, 60.87, 142.30°)
OKLaboklab(60.71% -0.1301 0.0886)
OKLCHoklch(60.71% 0.157 145.8)
XYZxyz(13.9033, 24.2069, 9.0929)
Luminance0.2421 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#339A42 #9A338B
analogous
#579A33 #339A42 #339A76
triadic
#339A42 #42339A #9A4233
tetradic
#339A42 #33579A #9A338B #9A7633
square
#339A42 #33579A #9A338B #9A7633
split-complementary
#339A42 #76339A #9A3357
monochromatic
#153E1B #246C2E #339A42 #48C25A #76D283

Accessibility & contrast

On white

3.59
#339A42 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##339A42#FFFFFF#000000##000000
##339A421.003.595.845.84
#FFFFFF3.591.0021.0021.00
#0000005.8421.001.001.00
##0000005.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8C3A
Deuteranopia (green-blind)
#908449
Tritanopia (blue-blind)
#149686
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #339a42;
/* rgb */ color: rgb(51, 154, 66);
/* oklch */ color: oklch(60.7% 0.157 145.8);
Tailwind
colors: {
  custom: {
    50: '#78b979',
    500: '#339a42',
    950: '#000000',
  },
}
SCSS
$custom: #339a42;
$custom-light: #78b979;
$custom-dark: #000000;
JSON
{
  "hex": "#339a42",
  "rgb": {
    "r": 51,
    "g": 154,
    "b": 66
  },
  "hsl": {
    "h": 128.738,
    "s": 50.244,
    "l": 40.196
  },
  "oklch": {
    "l": 0.60711,
    "c": 0.15745,
    "h": 145.8
  },
  "luminance": 0.24208
}

Semantic roles & 50–950 ramp

primary
#339A42
secondary
#BA6FAF
accent
#4EC5DA
background
#F7FBF7
surface
#EEF6ED
border
#C9D0C8
text
#0A1109
muted
#7C807B

Preview Lab

Preview with #339A42

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

Preview Lab → · Contrast checker → · Palette generator →

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