#338A2B#338A2B

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

Color values

HEX#338A2B
RGBrgb(51, 138, 43)
HSLhsl(115, 52%, 35%)
HSVhsv(115, 69%, 54%)
CMYKcmyk(63%, 0%, 68.8%, 45.9%)
CIE-LABlab(50.75, -44.88, 41.66)
CIE-LCHlch(50.75, 61.23, 137.13°)
OKLaboklab(56.05% -0.1223 0.0958)
OKLCHoklch(56.05% 0.155 141.9)
XYZxyz(10.8892, 19.0541, 5.3890)
Luminance0.1905 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338A2B #822B8A
analogous
#638A2B #338A2B #2B8A52
triadic
#338A2B #2B338A #8A2B33
tetradic
#338A2B #2B638A #822B8A #8A522B
square
#338A2B #2B638A #822B8A #8A522B
split-complementary
#338A2B #522B8A #8A2B63
monochromatic
#112D0E #225B1C #338A2B #44B93A #6BCE61

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##338A2B#FFFFFF#000000##000000
##338A2B1.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)
#8D7D1E
Deuteranopia (green-blind)
#837634
Tritanopia (blue-blind)
#248677
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #338a2b;
/* rgb */ color: rgb(51, 138, 43);
/* oklch */ color: oklch(56.1% 0.155 141.9);
Tailwind
colors: {
  custom: {
    50: '#76ad69',
    500: '#338a2b',
    950: '#000000',
  },
}
SCSS
$custom: #338a2b;
$custom-light: #76ad69;
$custom-dark: #000000;
JSON
{
  "hex": "#338a2b",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 43
  },
  "hsl": {
    "h": 114.947,
    "s": 52.486,
    "l": 35.49
  },
  "oklch": {
    "l": 0.56054,
    "c": 0.15541,
    "h": 141.9
  },
  "luminance": 0.19055
}

Semantic roles & 50–950 ramp

primary
#338A2B
secondary
#AD5DB4
accent
#4CDCD0
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#091007
muted
#7B7F7A

Preview Lab

Preview with #338A2B

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

Preview Lab → · Contrast checker → · Palette generator →

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