#338D27#338D27

#338D27 is a mid, vivid green. Relative luminance 0.199; OKLCH L 56.8% C 0.162 H 141.4°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#338D27
RGBrgb(51, 141, 39)
HSLhsl(113, 57%, 35%)
HSVhsv(113, 72%, 55%)
CMYKcmyk(63.8%, 0%, 72.3%, 44.7%)
CIE-LABlab(51.72, -46.37, 44.36)
CIE-LCHlch(51.72, 64.17, 136.27°)
OKLaboklab(56.85% -0.1266 0.101)
OKLCHoklch(56.85% 0.162 141.4)
XYZxyz(11.2557, 19.8990, 5.1668)
Luminance0.1990 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338D27 #81278D
analogous
#668D27 #338D27 #278D4E
triadic
#338D27 #27338D #8D2733
tetradic
#338D27 #27668D #81278D #8D4E27
square
#338D27 #27668D #81278D #8D4E27
split-complementary
#338D27 #4E278D #8D2766
monochromatic
#102D0C #225D1A #338D27 #44BD34 #6AD25C

Accessibility & contrast

On white

4.22
#338D27 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#338D27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338D27
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338D27#FFFFFF#000000##000000
##338D271.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#918017
Deuteranopia (green-blind)
#867831
Tritanopia (blue-blind)
#248979
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #338d27;
/* rgb */ color: rgb(51, 141, 39);
/* oklch */ color: oklch(56.8% 0.162 141.4);
Tailwind
colors: {
  custom: {
    50: '#76af67',
    500: '#338d27',
    950: '#000000',
  },
}
SCSS
$custom: #338d27;
$custom-light: #76af67;
$custom-dark: #000000;
JSON
{
  "hex": "#338d27",
  "rgb": {
    "r": 51,
    "g": 141,
    "b": 39
  },
  "hsl": {
    "h": 112.941,
    "s": 56.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.56848,
    "c": 0.16197,
    "h": 141.4
  },
  "luminance": 0.199
}

Semantic roles & 50–950 ramp

primary
#338D27
secondary
#AC59B7
accent
#48E0CE
background
#F7FAF6
surface
#EEF5EB
border
#C9CFC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #338D27

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

Preview Lab → · Contrast checker → · Palette generator →

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