#338122#338122

#338122 is a mid, vivid green. Relative luminance 0.165; OKLCH L 53.5% C 0.150 H 140.4°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#338122
RGBrgb(51, 129, 34)
HSLhsl(109, 58%, 32%)
HSVhsv(109, 74%, 51%)
CMYKcmyk(60.5%, 0%, 73.6%, 49.4%)
CIE-LABlab(47.65, -42.27, 42.16)
CIE-LCHlch(47.65, 59.70, 135.08°)
OKLaboklab(53.47% -0.1158 0.0957)
OKLCHoklch(53.47% 0.15 140.4)
XYZxyz(9.5038, 16.5190, 4.2007)
Luminance0.1652 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338122 #702281
analogous
#638122 #338122 #228141
triadic
#338122 #223381 #812233
tetradic
#338122 #226381 #702281 #814122
square
#338122 #226381 #702281 #814122
split-complementary
#338122 #412281 #812263
monochromatic
#0D2008 #205115 #338122 #46B12F #65D04D

Accessibility & contrast

On white

4.88
#338122 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#338122 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #338122
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338122#FFFFFF#000000##FFFFFF
##3381221.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857512
Deuteranopia (green-blind)
#7B6F2B
Tritanopia (blue-blind)
#297D6E
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #338122;
/* rgb */ color: rgb(51, 129, 34);
/* oklch */ color: oklch(53.5% 0.150 140.4);
Tailwind
colors: {
  custom: {
    50: '#74a663',
    500: '#338122',
    950: '#000000',
  },
}
SCSS
$custom: #338122;
$custom-light: #74a663;
$custom-dark: #000000;
JSON
{
  "hex": "#338122",
  "rgb": {
    "r": 51,
    "g": 129,
    "b": 34
  },
  "hsl": {
    "h": 109.263,
    "s": 58.282,
    "l": 31.961
  },
  "oklch": {
    "l": 0.53468,
    "c": 0.15026,
    "h": 140.4
  },
  "luminance": 0.1652
}

Semantic roles & 50–950 ramp

primary
#338122
secondary
#A14BB3
accent
#46E1C6
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#090F06
muted
#7B7F7A

Preview Lab

Preview with #338122

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

Preview Lab → · Contrast checker → · Palette generator →

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