#338A2D#338A2D

#338A2D is a mid, vivid green. Relative luminance 0.191; OKLCH L 56.1% C 0.154 H 142.2°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#338A2D
RGBrgb(51, 138, 45)
HSLhsl(116, 51%, 36%)
HSVhsv(116, 67%, 54%)
CMYKcmyk(63%, 0%, 67.4%, 45.9%)
CIE-LABlab(50.77, -44.67, 40.80)
CIE-LCHlch(50.77, 60.50, 137.60°)
OKLaboklab(56.08% -0.1217 0.0943)
OKLCHoklch(56.08% 0.154 142.2)
XYZxyz(10.9268, 19.0692, 5.5870)
Luminance0.1907 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338A2D #842D8A
analogous
#618A2D #338A2D #2D8A55
triadic
#338A2D #2D338A #8A2D33
tetradic
#338A2D #2D618A #842D8A #8A552D
square
#338A2D #2D618A #842D8A #8A552D
split-complementary
#338A2D #552D8A #8A2D61
monochromatic
#112E0F #225C1E #338A2D #44B83C #6BCD65

Accessibility & contrast

On white

4.36
#338A2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##338A2D#FFFFFF#000000##000000
##338A2D1.004.364.814.81
#FFFFFF4.361.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7D21
Deuteranopia (green-blind)
#827635
Tritanopia (blue-blind)
#248677
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #338a2d;
/* rgb */ color: rgb(51, 138, 45);
/* oklch */ color: oklch(56.1% 0.154 142.2);
Tailwind
colors: {
  custom: {
    50: '#76ad6a',
    500: '#338a2d',
    950: '#000000',
  },
}
SCSS
$custom: #338a2d;
$custom-light: #76ad6a;
$custom-dark: #000000;
JSON
{
  "hex": "#338a2d",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 45
  },
  "hsl": {
    "h": 116.129,
    "s": 50.82,
    "l": 35.882
  },
  "oklch": {
    "l": 0.56075,
    "c": 0.15392,
    "h": 142.2
  },
  "luminance": 0.1907
}

Semantic roles & 50–950 ramp

primary
#338A2D
secondary
#AE60B3
accent
#4DDAD1
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#091007
muted
#7B7F7A

Preview Lab

Preview with #338A2D

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

Preview Lab → · Contrast checker → · Palette generator →

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