#338727#338727

#338727 is a mid, vivid green. Relative luminance 0.182; OKLCH L 55.2% C 0.154 H 141.3°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#338727
RGBrgb(51, 135, 39)
HSLhsl(113, 55%, 34%)
HSVhsv(113, 71%, 53%)
CMYKcmyk(62.2%, 0%, 71.1%, 47.1%)
CIE-LABlab(49.71, -44.12, 42.25)
CIE-LCHlch(49.71, 61.09, 136.24°)
OKLaboklab(55.18% -0.1205 0.0966)
OKLCHoklch(55.18% 0.154 141.3)
XYZxyz(10.3949, 18.1773, 4.8798)
Luminance0.1818 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338727 #7B2787
analogous
#638727 #338727 #27874B
triadic
#338727 #273387 #872733
tetradic
#338727 #276387 #7B2787 #874B27
square
#338727 #276387 #7B2787 #874B27
split-complementary
#338727 #4B2787 #872763
monochromatic
#0F280C #215819 #338727 #45B635 #68CF59

Accessibility & contrast

On white

4.53
#338727 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#338727 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338727
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338727#FFFFFF#000000##000000
##3387271.004.534.644.64
#FFFFFF4.531.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A19
Deuteranopia (green-blind)
#807430
Tritanopia (blue-blind)
#268374
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #338727;
/* rgb */ color: rgb(51, 135, 39);
/* oklch */ color: oklch(55.2% 0.154 141.3);
Tailwind
colors: {
  custom: {
    50: '#75ab67',
    500: '#338727',
    950: '#000000',
  },
}
SCSS
$custom: #338727;
$custom-light: #75ab67;
$custom-dark: #000000;
JSON
{
  "hex": "#338727",
  "rgb": {
    "r": 51,
    "g": 135,
    "b": 39
  },
  "hsl": {
    "h": 112.5,
    "s": 55.172,
    "l": 34.118
  },
  "oklch": {
    "l": 0.55184,
    "c": 0.15447,
    "h": 141.3
  },
  "luminance": 0.18178
}

Semantic roles & 50–950 ramp

primary
#338727
secondary
#A856B4
accent
#49DFCC
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #338727

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

Preview Lab → · Contrast checker → · Palette generator →

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