#338C2D#338C2D

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

Color values

HEX#338C2D
RGBrgb(51, 140, 45)
HSLhsl(116, 51%, 36%)
HSVhsv(116, 68%, 55%)
CMYKcmyk(63.6%, 0%, 67.9%, 45.1%)
CIE-LABlab(51.44, -45.43, 41.53)
CIE-LCHlch(51.44, 61.55, 137.57°)
OKLaboklab(56.63% -0.1237 0.0958)
OKLCHoklch(56.63% 0.156 142.2)
XYZxyz(11.2164, 19.6484, 5.6835)
Luminance0.1965 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338C2D #862D8C
analogous
#638C2D #338C2D #2D8C57
triadic
#338C2D #2D338C #8C2D33
tetradic
#338C2D #2D638C #862D8C #8C572D
square
#338C2D #2D638C #862D8C #8C572D
split-complementary
#338C2D #572D8C #8C2D63
monochromatic
#112F0F #225E1E #338C2D #44BA3C #6CCE66

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##338C2D#FFFFFF#000000##000000
##338C2D1.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)
#8F7F21
Deuteranopia (green-blind)
#847836
Tritanopia (blue-blind)
#238878
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #338c2d;
/* rgb */ color: rgb(51, 140, 45);
/* oklch */ color: oklch(56.6% 0.156 142.2);
Tailwind
colors: {
  custom: {
    50: '#76ae6b',
    500: '#338c2d',
    950: '#000000',
  },
}
SCSS
$custom: #338c2d;
$custom-light: #76ae6b;
$custom-dark: #000000;
JSON
{
  "hex": "#338c2d",
  "rgb": {
    "r": 51,
    "g": 140,
    "b": 45
  },
  "hsl": {
    "h": 116.211,
    "s": 51.351,
    "l": 36.275
  },
  "oklch": {
    "l": 0.56628,
    "c": 0.15648,
    "h": 142.2
  },
  "luminance": 0.19649
}

Semantic roles & 50–950 ramp

primary
#338C2D
secondary
#AF60B4
accent
#4DDBD2
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#091007
muted
#7B7F7A

Preview Lab

Preview with #338C2D

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

Preview Lab → · Contrast checker → · Palette generator →

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