#338B20#338B20

#338B20 is a mid, vivid green. Relative luminance 0.193; OKLCH L 56.2% C 0.164 H 140.6°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#338B20
RGBrgb(51, 139, 32)
HSLhsl(109, 63%, 34%)
HSVhsv(109, 77%, 55%)
CMYKcmyk(63.3%, 0%, 77%, 45.5%)
CIE-LABlab(51.00, -46.20, 46.31)
CIE-LCHlch(51.00, 65.41, 134.94°)
OKLaboklab(56.24% -0.1266 0.1041)
OKLCHoklch(56.24% 0.164 140.6)
XYZxyz(10.8581, 19.2723, 4.5139)
Luminance0.1927 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338B20 #78208B
analogous
#688B20 #338B20 #208B42
triadic
#338B20 #20338B #8B2033
tetradic
#338B20 #20688B #78208B #8B4220
square
#338B20 #20688B #78208B #8B4220
split-complementary
#338B20 #42208B #8B2068
monochromatic
#0E2809 #215915 #338B20 #45BD2B #67D64F

Accessibility & contrast

On white

4.33
#338B20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#338B20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338B20
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338B20#FFFFFF#000000##000000
##338B201.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E09
Deuteranopia (green-blind)
#84772C
Tritanopia (blue-blind)
#268677
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #338b20;
/* rgb */ color: rgb(51, 139, 32);
/* oklch */ color: oklch(56.2% 0.164 140.6);
Tailwind
colors: {
  custom: {
    50: '#76ae64',
    500: '#338b20',
    950: '#000000',
  },
}
SCSS
$custom: #338b20;
$custom-light: #76ae64;
$custom-dark: #000000;
JSON
{
  "hex": "#338b20",
  "rgb": {
    "r": 51,
    "g": 139,
    "b": 32
  },
  "hsl": {
    "h": 109.346,
    "s": 62.573,
    "l": 33.529
  },
  "oklch": {
    "l": 0.56238,
    "c": 0.16387,
    "h": 140.6
  },
  "luminance": 0.19273
}

Semantic roles & 50–950 ramp

primary
#338B20
secondary
#A64DBA
accent
#42E6C9
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A1006
muted
#7C7F7A

Preview Lab

Preview with #338B20

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

Preview Lab → · Contrast checker → · Palette generator →

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