#339828#339828

#339828 is a mid, vivid green. Relative luminance 0.233; OKLCH L 59.9% C 0.175 H 141.7°. Best body text is #000000 at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#339828
RGBrgb(51, 152, 40)
HSLhsl(114, 58%, 38%)
HSVhsv(114, 74%, 60%)
CMYKcmyk(66.4%, 0%, 73.7%, 40.4%)
CIE-LABlab(55.39, -50.27, 47.74)
CIE-LCHlch(55.39, 69.33, 136.48°)
OKLaboklab(59.89% -0.1371 0.1082)
OKLCHoklch(59.89% 0.175 141.7)
XYZxyz(12.9758, 23.3122, 5.8229)
Luminance0.2331 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#339828 #8D2898
analogous
#6B9828 #339828 #289855
triadic
#339828 #283398 #982833
tetradic
#339828 #286B98 #8D2898 #985528
square
#339828 #286B98 #8D2898 #985528
split-complementary
#339828 #552898 #98286B
monochromatic
#12370F #23681B #339828 #43C835 #6FD664

Accessibility & contrast

On white

3.71
#339828 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.66
#339828 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #339828
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##339828#FFFFFF#000000##000000
##3398281.003.715.665.66
#FFFFFF3.711.0021.0021.00
#0000005.6621.001.001.00
##0000005.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8A14
Deuteranopia (green-blind)
#908233
Tritanopia (blue-blind)
#1F9382
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #339828;
/* rgb */ color: rgb(51, 152, 40);
/* oklch */ color: oklch(59.9% 0.175 141.7);
Tailwind
colors: {
  custom: {
    50: '#79b769',
    500: '#339828',
    950: '#000000',
  },
}
SCSS
$custom: #339828;
$custom-light: #79b769;
$custom-dark: #000000;
JSON
{
  "hex": "#339828",
  "rgb": {
    "r": 51,
    "g": 152,
    "b": 40
  },
  "hsl": {
    "h": 114.107,
    "s": 58.333,
    "l": 37.647
  },
  "oklch": {
    "l": 0.59887,
    "c": 0.17466,
    "h": 141.7
  },
  "luminance": 0.23313
}

Semantic roles & 50–950 ramp

primary
#339828
secondary
#B360BC
accent
#46E2D2
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1107
muted
#7C807A

Preview Lab

Preview with #339828

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

Preview Lab → · Contrast checker → · Palette generator →

#339828 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva