#338A20#338A20

#338A20 is a mid, vivid green. Relative luminance 0.190; OKLCH L 56.0% C 0.163 H 140.5°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#338A20
RGBrgb(51, 138, 32)
HSLhsl(109, 62%, 33%)
HSVhsv(109, 77%, 54%)
CMYKcmyk(63%, 0%, 76.8%, 45.9%)
CIE-LABlab(50.67, -45.83, 45.97)
CIE-LCHlch(50.67, 64.92, 134.91°)
OKLaboklab(55.96% -0.1256 0.1034)
OKLCHoklch(55.96% 0.163 140.5)
XYZxyz(10.7139, 18.9840, 4.4659)
Luminance0.1898 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338A20 #77208A
analogous
#688A20 #338A20 #208A42
triadic
#338A20 #20338A #8A2033
tetradic
#338A20 #20688A #77208A #8A4220
square
#338A20 #20688A #77208A #8A4220
split-complementary
#338A20 #42208A #8A2068
monochromatic
#0E2709 #215814 #338A20 #45BC2C #67D64E

Accessibility & contrast

On white

4.38
#338A20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#338A20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338A20
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338A20#FFFFFF#000000##000000
##338A201.004.384.804.80
#FFFFFF4.381.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D09
Deuteranopia (green-blind)
#83762B
Tritanopia (blue-blind)
#268576
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #338a20;
/* rgb */ color: rgb(51, 138, 32);
/* oklch */ color: oklch(56.0% 0.163 140.5);
Tailwind
colors: {
  custom: {
    50: '#76ad63',
    500: '#338a20',
    950: '#000000',
  },
}
SCSS
$custom: #338a20;
$custom-light: #76ad63;
$custom-dark: #000000;
JSON
{
  "hex": "#338a20",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 32
  },
  "hsl": {
    "h": 109.245,
    "s": 62.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.5596,
    "c": 0.16266,
    "h": 140.5
  },
  "luminance": 0.18985
}

Semantic roles & 50–950 ramp

primary
#338A20
secondary
#A64DB9
accent
#42E5C8
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #338A20

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

Preview Lab → · Contrast checker → · Palette generator →

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