#338C2B#338C2B

#338C2B is a mid, vivid green. Relative luminance 0.196; OKLCH L 56.6% C 0.158 H 141.9°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#338C2B
RGBrgb(51, 140, 43)
HSLhsl(115, 53%, 36%)
HSVhsv(115, 69%, 55%)
CMYKcmyk(63.6%, 0%, 69.3%, 45.1%)
CIE-LABlab(51.42, -45.63, 42.37)
CIE-LCHlch(51.42, 62.27, 137.12°)
OKLaboklab(56.61% -0.1244 0.0974)
OKLCHoklch(56.61% 0.158 141.9)
XYZxyz(11.1788, 19.6333, 5.4855)
Luminance0.1963 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338C2B #842B8C
analogous
#638C2B #338C2B #2B8C53
triadic
#338C2B #2B338C #8C2B33
tetradic
#338C2B #2B638C #842B8C #8C532B
square
#338C2B #2B638C #842B8C #8C532B
split-complementary
#338C2B #532B8C #8C2B63
monochromatic
#112E0E #225D1D #338C2B #44BB39 #6BCF62

Accessibility & contrast

On white

4.26
#338C2B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#338C2B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338C2B
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338C2B#FFFFFF#000000##000000
##338C2B1.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7F1E
Deuteranopia (green-blind)
#847834
Tritanopia (blue-blind)
#238878
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #338c2b;
/* rgb */ color: rgb(51, 140, 43);
/* oklch */ color: oklch(56.6% 0.158 141.9);
Tailwind
colors: {
  custom: {
    50: '#76ae69',
    500: '#338c2b',
    950: '#000000',
  },
}
SCSS
$custom: #338c2b;
$custom-light: #76ae69;
$custom-dark: #000000;
JSON
{
  "hex": "#338c2b",
  "rgb": {
    "r": 51,
    "g": 140,
    "b": 43
  },
  "hsl": {
    "h": 115.052,
    "s": 53.005,
    "l": 35.882
  },
  "oklch": {
    "l": 0.56608,
    "c": 0.15795,
    "h": 141.9
  },
  "luminance": 0.19634
}

Semantic roles & 50–950 ramp

primary
#338C2B
secondary
#AE5EB5
accent
#4BDCD0
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#091007
muted
#7B7F7A

Preview Lab

Preview with #338C2B

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

Preview Lab → · Contrast checker → · Palette generator →

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