#338D2A#338D2A

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

Color values

HEX#338D2A
RGBrgb(51, 141, 42)
HSLhsl(115, 54%, 36%)
HSVhsv(115, 70%, 55%)
CMYKcmyk(63.8%, 0%, 70.2%, 44.7%)
CIE-LABlab(51.75, -46.10, 43.15)
CIE-LCHlch(51.75, 63.14, 136.89°)
OKLaboklab(56.88% -0.1257 0.0988)
OKLCHoklch(56.88% 0.16 141.8)
XYZxyz(11.3074, 19.9196, 5.4390)
Luminance0.1992 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338D2A #842A8D
analogous
#648D2A #338D2A #2A8D52
triadic
#338D2A #2A338D #8D2A33
tetradic
#338D2A #2A648D #842A8D #8D522A
square
#338D2A #2A648D #842A8D #8D522A
split-complementary
#338D2A #522A8D #8D2A64
monochromatic
#112F0E #225E1C #338D2A #44BC38 #6BD061

Accessibility & contrast

On white

4.21
#338D2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##338D2A#FFFFFF#000000##000000
##338D2A1.004.214.984.98
#FFFFFF4.211.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#90801C
Deuteranopia (green-blind)
#857833
Tritanopia (blue-blind)
#238979
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #338d2a;
/* rgb */ color: rgb(51, 141, 42);
/* oklch */ color: oklch(56.9% 0.160 141.8);
Tailwind
colors: {
  custom: {
    50: '#76af69',
    500: '#338d2a',
    950: '#000000',
  },
}
SCSS
$custom: #338d2a;
$custom-light: #76af69;
$custom-dark: #000000;
JSON
{
  "hex": "#338d2a",
  "rgb": {
    "r": 51,
    "g": 141,
    "b": 42
  },
  "hsl": {
    "h": 114.545,
    "s": 54.098,
    "l": 35.882
  },
  "oklch": {
    "l": 0.56875,
    "c": 0.15991,
    "h": 141.8
  },
  "luminance": 0.19921
}

Semantic roles & 50–950 ramp

primary
#338D2A
secondary
#AE5DB6
accent
#4ADDD0
background
#F7FAF6
surface
#EEF5EB
border
#C9CFC6
text
#091007
muted
#7B7F7A

Preview Lab

Preview with #338D2A

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

Preview Lab → · Contrast checker → · Palette generator →

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