#338F27#338F27

#338F27 is a mid, vivid green. Relative luminance 0.205; OKLCH L 57.4% C 0.164 H 141.5°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#338F27
RGBrgb(51, 143, 39)
HSLhsl(113, 57%, 36%)
HSVhsv(113, 73%, 56%)
CMYKcmyk(64.3%, 0%, 72.7%, 43.9%)
CIE-LABlab(52.39, -47.11, 45.05)
CIE-LCHlch(52.39, 65.18, 136.28°)
OKLaboklab(57.4% -0.1286 0.1025)
OKLCHoklch(57.4% 0.164 141.5)
XYZxyz(11.5533, 20.4941, 5.2660)
Luminance0.2049 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338F27 #83278F
analogous
#678F27 #338F27 #278F4F
triadic
#338F27 #27338F #8F2733
tetradic
#338F27 #27678F #83278F #8F4F27
square
#338F27 #27678F #83278F #8F4F27
split-complementary
#338F27 #4F278F #8F2767
monochromatic
#112F0D #225F1A #338F27 #44BF34 #6BD35D

Accessibility & contrast

On white

4.12
#338F27 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#338F27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338F27
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338F27#FFFFFF#000000##000000
##338F271.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#938216
Deuteranopia (green-blind)
#877A31
Tritanopia (blue-blind)
#238A7A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #338f27;
/* rgb */ color: rgb(51, 143, 39);
/* oklch */ color: oklch(57.4% 0.164 141.5);
Tailwind
colors: {
  custom: {
    50: '#77b168',
    500: '#338f27',
    950: '#000000',
  },
}
SCSS
$custom: #338f27;
$custom-light: #77b168;
$custom-dark: #000000;
JSON
{
  "hex": "#338f27",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 39
  },
  "hsl": {
    "h": 113.077,
    "s": 57.143,
    "l": 35.686
  },
  "oklch": {
    "l": 0.57401,
    "c": 0.16443,
    "h": 141.5
  },
  "luminance": 0.20495
}

Semantic roles & 50–950 ramp

primary
#338F27
secondary
#AD5AB8
accent
#47E0CF
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1106
muted
#7C807A

Preview Lab

Preview with #338F27

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

Preview Lab → · Contrast checker → · Palette generator →

#338F27 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva