#338720#338720

#338720 is a mid, vivid green. Relative luminance 0.181; OKLCH L 55.1% C 0.159 H 140.4°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#338720
RGBrgb(51, 135, 32)
HSLhsl(109, 62%, 33%)
HSVhsv(109, 76%, 53%)
CMYKcmyk(62.2%, 0%, 76.3%, 47.1%)
CIE-LABlab(49.66, -44.72, 44.97)
CIE-LCHlch(49.66, 63.42, 134.84°)
OKLaboklab(55.13% -0.1225 0.1013)
OKLCHoklch(55.13% 0.159 140.4)
XYZxyz(10.2894, 18.1351, 4.3244)
Luminance0.1814 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338720 #742087
analogous
#668720 #338720 #208740
triadic
#338720 #203387 #872033
tetradic
#338720 #206687 #742087 #874020
square
#338720 #206687 #742087 #874020
split-complementary
#338720 #402087 #872066
monochromatic
#0E2409 #205614 #338720 #46B82C #66D54D

Accessibility & contrast

On white

4.54
#338720 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#338720 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338720
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338720#FFFFFF#000000##000000
##3387201.004.544.634.63
#FFFFFF4.541.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A0B
Deuteranopia (green-blind)
#80732B
Tritanopia (blue-blind)
#278273
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #338720;
/* rgb */ color: rgb(51, 135, 32);
/* oklch */ color: oklch(55.1% 0.159 140.4);
Tailwind
colors: {
  custom: {
    50: '#76ab63',
    500: '#338720',
    950: '#000000',
  },
}
SCSS
$custom: #338720;
$custom-light: #76ab63;
$custom-dark: #000000;
JSON
{
  "hex": "#338720",
  "rgb": {
    "r": 51,
    "g": 135,
    "b": 32
  },
  "hsl": {
    "h": 108.932,
    "s": 61.677,
    "l": 32.745
  },
  "oklch": {
    "l": 0.55126,
    "c": 0.159,
    "h": 140.4
  },
  "luminance": 0.18136
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #338720

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

Preview Lab → · Contrast checker → · Palette generator →

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