#338820#338820

#338820 is a mid, vivid green. Relative luminance 0.184; OKLCH L 55.4% C 0.160 H 140.5°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#338820
RGBrgb(51, 136, 32)
HSLhsl(109, 62%, 33%)
HSVhsv(109, 76%, 53%)
CMYKcmyk(62.5%, 0%, 76.5%, 46.7%)
CIE-LABlab(50.00, -45.09, 45.30)
CIE-LCHlch(50.00, 63.92, 134.86°)
OKLaboklab(55.4% -0.1236 0.102)
OKLCHoklch(55.4% 0.16 140.5)
XYZxyz(10.4296, 18.4154, 4.3711)
Luminance0.1842 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338820 #752088
analogous
#678820 #338820 #208841
triadic
#338820 #203388 #882033
tetradic
#338820 #206788 #752088 #884120
square
#338820 #206788 #752088 #884120
split-complementary
#338820 #412088 #882067
monochromatic
#0E2509 #205614 #338820 #46BA2C #66D54D

Accessibility & contrast

On white

4.48
#338820 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#338820 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338820
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338820#FFFFFF#000000##000000
##3388201.004.484.684.68
#FFFFFF4.481.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B0B
Deuteranopia (green-blind)
#81742B
Tritanopia (blue-blind)
#278374
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #338820;
/* rgb */ color: rgb(51, 136, 32);
/* oklch */ color: oklch(55.4% 0.160 140.5);
Tailwind
colors: {
  custom: {
    50: '#76ab63',
    500: '#338820',
    950: '#000000',
  },
}
SCSS
$custom: #338820;
$custom-light: #76ab63;
$custom-dark: #000000;
JSON
{
  "hex": "#338820",
  "rgb": {
    "r": 51,
    "g": 136,
    "b": 32
  },
  "hsl": {
    "h": 109.038,
    "s": 61.905,
    "l": 32.941
  },
  "oklch": {
    "l": 0.55404,
    "c": 0.16023,
    "h": 140.5
  },
  "luminance": 0.18416
}

Semantic roles & 50–950 ramp

primary
#338820
secondary
#A44CB8
accent
#43E5C7
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #338820

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

Preview Lab → · Contrast checker → · Palette generator →

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