#338120#338120

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

Color values

HEX#338120
RGBrgb(51, 129, 32)
HSLhsl(108, 60%, 32%)
HSVhsv(108, 75%, 51%)
CMYKcmyk(60.5%, 0%, 75.2%, 49.4%)
CIE-LABlab(47.63, -42.44, 42.93)
CIE-LCHlch(47.63, 60.37, 134.67°)
OKLaboklab(53.45% -0.1164 0.0971)
OKLCHoklch(53.45% 0.152 140.2)
XYZxyz(9.4758, 16.5078, 4.0532)
Luminance0.1651 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338120 #6E2081
analogous
#648120 #338120 #20813E
triadic
#338120 #203381 #812033
tetradic
#338120 #206481 #6E2081 #813E20
square
#338120 #206481 #6E2081 #813E20
split-complementary
#338120 #3E2081 #812064
monochromatic
#0C1F08 #205014 #338120 #46B22C #64D249

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##338120#FFFFFF#000000##FFFFFF
##3381201.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)
#85750E
Deuteranopia (green-blind)
#7B6F2A
Tritanopia (blue-blind)
#297D6E
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #338120;
/* rgb */ color: rgb(51, 129, 32);
/* oklch */ color: oklch(53.5% 0.152 140.2);
Tailwind
colors: {
  custom: {
    50: '#74a662',
    500: '#338120',
    950: '#000000',
  },
}
SCSS
$custom: #338120;
$custom-light: #74a662;
$custom-dark: #000000;
JSON
{
  "hex": "#338120",
  "rgb": {
    "r": 51,
    "g": 129,
    "b": 32
  },
  "hsl": {
    "h": 108.247,
    "s": 60.248,
    "l": 31.569
  },
  "oklch": {
    "l": 0.53452,
    "c": 0.15156,
    "h": 140.2
  },
  "luminance": 0.16509
}

Semantic roles & 50–950 ramp

primary
#338120
secondary
#9F49B4
accent
#44E3C4
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#090F05
muted
#7B7F7A

Preview Lab

Preview with #338120

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

Preview Lab → · Contrast checker → · Palette generator →

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