#338221#338221

#338221 is a mid, vivid green. Relative luminance 0.168; OKLCH L 53.7% C 0.152 H 140.3°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#338221
RGBrgb(51, 130, 33)
HSLhsl(109, 60%, 32%)
HSVhsv(109, 75%, 51%)
CMYKcmyk(60.8%, 0%, 74.6%, 49%)
CIE-LABlab(47.98, -42.74, 42.89)
CIE-LCHlch(47.98, 60.55, 134.90°)
OKLaboklab(53.74% -0.1172 0.0971)
OKLCHoklch(53.74% 0.152 140.3)
XYZxyz(9.6219, 16.7780, 4.1700)
Luminance0.1678 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338221 #702182
analogous
#648221 #338221 #218240
triadic
#338221 #213382 #822133
tetradic
#338221 #216482 #702182 #824021
square
#338221 #216482 #702182 #824021
split-complementary
#338221 #402182 #822164
monochromatic
#0D2008 #205115 #338221 #46B32D #65D24C

Accessibility & contrast

On white

4.82
#338221 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#338221 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #338221
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338221#FFFFFF#000000##FFFFFF
##3382211.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867610
Deuteranopia (green-blind)
#7C6F2B
Tritanopia (blue-blind)
#297E6F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #338221;
/* rgb */ color: rgb(51, 130, 33);
/* oklch */ color: oklch(53.7% 0.152 140.3);
Tailwind
colors: {
  custom: {
    50: '#75a763',
    500: '#338221',
    950: '#000000',
  },
}
SCSS
$custom: #338221;
$custom-light: #75a763;
$custom-dark: #000000;
JSON
{
  "hex": "#338221",
  "rgb": {
    "r": 51,
    "g": 130,
    "b": 33
  },
  "hsl": {
    "h": 108.866,
    "s": 59.509,
    "l": 31.961
  },
  "oklch": {
    "l": 0.53739,
    "c": 0.15218,
    "h": 140.3
  },
  "luminance": 0.16779
}

Semantic roles & 50–950 ramp

primary
#338221
secondary
#A14AB4
accent
#45E3C5
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#090F05
muted
#7B7F7A

Preview Lab

Preview with #338221

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

Preview Lab → · Contrast checker → · Palette generator →

#338221 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva