#338222#338222

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

Color values

HEX#338222
RGBrgb(51, 130, 34)
HSLhsl(109, 59%, 32%)
HSVhsv(109, 74%, 51%)
CMYKcmyk(60.8%, 0%, 73.8%, 49%)
CIE-LABlab(47.99, -42.66, 42.51)
CIE-LCHlch(47.99, 60.22, 135.10°)
OKLaboklab(53.75% -0.1169 0.0964)
OKLCHoklch(53.75% 0.152 140.5)
XYZxyz(9.6362, 16.7837, 4.2448)
Luminance0.1678 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338222 #712282
analogous
#638222 #338222 #228241
triadic
#338222 #223382 #822233
tetradic
#338222 #226382 #712282 #824122
square
#338222 #226382 #712282 #824122
split-complementary
#338222 #412282 #822263
monochromatic
#0D2109 #205115 #338222 #46B32F #65D14E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##338222#FFFFFF#000000##FFFFFF
##3382221.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)
#867612
Deuteranopia (green-blind)
#7C6F2C
Tritanopia (blue-blind)
#287E6F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #338222;
/* rgb */ color: rgb(51, 130, 34);
/* oklch */ color: oklch(53.7% 0.152 140.5);
Tailwind
colors: {
  custom: {
    50: '#75a763',
    500: '#338222',
    950: '#000000',
  },
}
SCSS
$custom: #338222;
$custom-light: #75a763;
$custom-dark: #000000;
JSON
{
  "hex": "#338222",
  "rgb": {
    "r": 51,
    "g": 130,
    "b": 34
  },
  "hsl": {
    "h": 109.375,
    "s": 58.537,
    "l": 32.157
  },
  "oklch": {
    "l": 0.53748,
    "c": 0.15153,
    "h": 140.5
  },
  "luminance": 0.16785
}

Semantic roles & 50–950 ramp

primary
#338222
secondary
#A24CB4
accent
#46E2C6
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#090F06
muted
#7B7F7A

Preview Lab

Preview with #338222

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

Preview Lab → · Contrast checker → · Palette generator →

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