#338B27#338B27

#338B27 is a mid, vivid green. Relative luminance 0.193; OKLCH L 56.3% C 0.159 H 141.4°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#338B27
RGBrgb(51, 139, 39)
HSLhsl(113, 56%, 35%)
HSVhsv(113, 72%, 55%)
CMYKcmyk(63.3%, 0%, 71.9%, 45.5%)
CIE-LABlab(51.05, -45.63, 43.66)
CIE-LCHlch(51.05, 63.15, 136.26°)
OKLaboklab(56.29% -0.1246 0.0995)
OKLCHoklch(56.29% 0.159 141.4)
XYZxyz(10.9635, 19.3145, 5.0694)
Luminance0.1932 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338B27 #7F278B
analogous
#658B27 #338B27 #278B4D
triadic
#338B27 #27338B #8B2733
tetradic
#338B27 #27658B #7F278B #8B4D27
square
#338B27 #27658B #7F278B #8B4D27
split-complementary
#338B27 #4D278B #8B2765
monochromatic
#102B0C #215B1A #338B27 #45BB34 #69D15B

Accessibility & contrast

On white

4.32
#338B27 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#338B27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338B27
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338B27#FFFFFF#000000##000000
##338B271.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E17
Deuteranopia (green-blind)
#847731
Tritanopia (blue-blind)
#258777
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #338b27;
/* rgb */ color: rgb(51, 139, 39);
/* oklch */ color: oklch(56.3% 0.159 141.4);
Tailwind
colors: {
  custom: {
    50: '#76ae67',
    500: '#338b27',
    950: '#000000',
  },
}
SCSS
$custom: #338b27;
$custom-light: #76ae67;
$custom-dark: #000000;
JSON
{
  "hex": "#338b27",
  "rgb": {
    "r": 51,
    "g": 139,
    "b": 39
  },
  "hsl": {
    "h": 112.8,
    "s": 56.18,
    "l": 34.902
  },
  "oklch": {
    "l": 0.56294,
    "c": 0.15949,
    "h": 141.4
  },
  "luminance": 0.19316
}

Semantic roles & 50–950 ramp

primary
#338B27
secondary
#AB58B6
accent
#48DFCD
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #338B27

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

Preview Lab → · Contrast checker → · Palette generator →

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