#338A27#338A27

#338A27 is a mid, vivid green. Relative luminance 0.190; OKLCH L 56.0% C 0.158 H 141.4°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#338A27
RGBrgb(51, 138, 39)
HSLhsl(113, 56%, 35%)
HSVhsv(113, 72%, 54%)
CMYKcmyk(63%, 0%, 71.7%, 45.9%)
CIE-LABlab(50.72, -45.26, 43.31)
CIE-LCHlch(50.72, 62.64, 136.26°)
OKLaboklab(56.02% -0.1236 0.0988)
OKLCHoklch(56.02% 0.158 141.4)
XYZxyz(10.8194, 19.0262, 5.0213)
Luminance0.1903 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338A27 #7E278A
analogous
#658A27 #338A27 #278A4C
triadic
#338A27 #27338A #8A2733
tetradic
#338A27 #27658A #7E278A #8A4C27
square
#338A27 #27658A #7E278A #8A4C27
split-complementary
#338A27 #4C278A #8A2765
monochromatic
#102B0C #215A1A #338A27 #45BA34 #69D15B

Accessibility & contrast

On white

4.37
#338A27 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#338A27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338A27
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338A27#FFFFFF#000000##000000
##338A271.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7D18
Deuteranopia (green-blind)
#837631
Tritanopia (blue-blind)
#258676
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #338a27;
/* rgb */ color: rgb(51, 138, 39);
/* oklch */ color: oklch(56.0% 0.158 141.4);
Tailwind
colors: {
  custom: {
    50: '#76ad67',
    500: '#338a27',
    950: '#000000',
  },
}
SCSS
$custom: #338a27;
$custom-light: #76ad67;
$custom-dark: #000000;
JSON
{
  "hex": "#338a27",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 39
  },
  "hsl": {
    "h": 112.727,
    "s": 55.932,
    "l": 34.706
  },
  "oklch": {
    "l": 0.56017,
    "c": 0.15824,
    "h": 141.4
  },
  "luminance": 0.19027
}

Semantic roles & 50–950 ramp

primary
#338A27
secondary
#AA57B6
accent
#49DFCD
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #338A27

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

Preview Lab → · Contrast checker → · Palette generator →

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