#338620#338620

#338620 is a mid, vivid green. Relative luminance 0.179; OKLCH L 54.8% C 0.158 H 140.4°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#338620
RGBrgb(51, 134, 32)
HSLhsl(109, 61%, 33%)
HSVhsv(109, 76%, 53%)
CMYKcmyk(61.9%, 0%, 76.1%, 47.5%)
CIE-LABlab(49.32, -44.34, 44.63)
CIE-LCHlch(49.32, 62.91, 134.81°)
OKLaboklab(54.85% -0.1215 0.1006)
OKLCHoklch(54.85% 0.158 140.4)
XYZxyz(10.1506, 17.8574, 4.2781)
Luminance0.1786 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338620 #732086
analogous
#668620 #338620 #208640
triadic
#338620 #203386 #862033
tetradic
#338620 #206686 #732086 #864020
square
#338620 #206686 #732086 #864020
split-complementary
#338620 #402086 #862066
monochromatic
#0D2308 #205514 #338620 #46B72C #65D44C

Accessibility & contrast

On white

4.59
#338620 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#338620 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #338620
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338620#FFFFFF#000000##FFFFFF
##3386201.004.594.574.59
#FFFFFF4.591.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#8A790C
Deuteranopia (green-blind)
#80732B
Tritanopia (blue-blind)
#278272
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #338620;
/* rgb */ color: rgb(51, 134, 32);
/* oklch */ color: oklch(54.8% 0.158 140.4);
Tailwind
colors: {
  custom: {
    50: '#75aa63',
    500: '#338620',
    950: '#000000',
  },
}
SCSS
$custom: #338620;
$custom-light: #75aa63;
$custom-dark: #000000;
JSON
{
  "hex": "#338620",
  "rgb": {
    "r": 51,
    "g": 134,
    "b": 32
  },
  "hsl": {
    "h": 108.824,
    "s": 61.446,
    "l": 32.549
  },
  "oklch": {
    "l": 0.54847,
    "c": 0.15778,
    "h": 140.4
  },
  "luminance": 0.17858
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #338620

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

Preview Lab → · Contrast checker → · Palette generator →

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