#338D2B#338D2B

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

Color values

HEX#338D2B
RGBrgb(51, 141, 43)
HSLhsl(115, 53%, 36%)
HSVhsv(115, 70%, 55%)
CMYKcmyk(63.8%, 0%, 69.5%, 44.7%)
CIE-LABlab(51.75, -46.00, 42.73)
CIE-LCHlch(51.75, 62.79, 137.11°)
OKLaboklab(56.88% -0.1254 0.0981)
OKLCHoklch(56.88% 0.159 142)
XYZxyz(11.3256, 19.9269, 5.5345)
Luminance0.1993 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338D2B #852B8D
analogous
#648D2B #338D2B #2B8D54
triadic
#338D2B #2B338D #8D2B33
tetradic
#338D2B #2B648D #852B8D #8D542B
square
#338D2B #2B648D #852B8D #8D542B
split-complementary
#338D2B #542B8D #8D2B64
monochromatic
#112F0E #225E1D #338D2B #44BC39 #6CCF63

Accessibility & contrast

On white

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

On black

4.99
#338D2B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338D2B
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338D2B#FFFFFF#000000##000000
##338D2B1.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #338d2b;
/* rgb */ color: rgb(51, 141, 43);
/* oklch */ color: oklch(56.9% 0.159 142.0);
Tailwind
colors: {
  custom: {
    50: '#76af6a',
    500: '#338d2b',
    950: '#000000',
  },
}
SCSS
$custom: #338d2b;
$custom-light: #76af6a;
$custom-dark: #000000;
JSON
{
  "hex": "#338d2b",
  "rgb": {
    "r": 51,
    "g": 141,
    "b": 43
  },
  "hsl": {
    "h": 115.102,
    "s": 53.261,
    "l": 36.078
  },
  "oklch": {
    "l": 0.56884,
    "c": 0.1592,
    "h": 142
  },
  "luminance": 0.19928
}

Semantic roles & 50–950 ramp

primary
#338D2B
secondary
#AE5EB6
accent
#4BDDD1
background
#F7FAF6
surface
#EEF5EB
border
#C9CFC6
text
#091007
muted
#7B7F7A

Preview Lab

Preview with #338D2B

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

Preview Lab → · Contrast checker → · Palette generator →

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