#338A28#338A28

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

Color values

HEX#338A28
RGBrgb(51, 138, 40)
HSLhsl(113, 55%, 35%)
HSVhsv(113, 71%, 54%)
CMYKcmyk(63%, 0%, 71%, 45.9%)
CIE-LABlab(50.73, -45.16, 42.90)
CIE-LCHlch(50.73, 62.29, 136.47°)
OKLaboklab(56.03% -0.1233 0.0981)
OKLCHoklch(56.03% 0.158 141.5)
XYZxyz(10.8362, 19.0329, 5.1097)
Luminance0.1903 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338A28 #7F288A
analogous
#648A28 #338A28 #288A4E
triadic
#338A28 #28338A #8A2833
tetradic
#338A28 #28648A #7F288A #8A4E28
square
#338A28 #28648A #7F288A #8A4E28
split-complementary
#338A28 #4E288A #8A2864
monochromatic
#102B0C #215B1A #338A28 #45B936 #69D05D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##338A28#FFFFFF#000000##000000
##338A281.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)
#8D7D19
Deuteranopia (green-blind)
#837631
Tritanopia (blue-blind)
#258676
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #338a28;
/* rgb */ color: rgb(51, 138, 40);
/* oklch */ color: oklch(56.0% 0.158 141.5);
Tailwind
colors: {
  custom: {
    50: '#76ad68',
    500: '#338a28',
    950: '#000000',
  },
}
SCSS
$custom: #338a28;
$custom-light: #76ad68;
$custom-dark: #000000;
JSON
{
  "hex": "#338a28",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 40
  },
  "hsl": {
    "h": 113.265,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.56026,
    "c": 0.15755,
    "h": 141.5
  },
  "luminance": 0.19034
}

Semantic roles & 50–950 ramp

primary
#338A28
secondary
#AB59B5
accent
#49DECE
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #338A28

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

Preview Lab → · Contrast checker → · Palette generator →

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