#338320#338320

#338320 is a mid, vivid green. Relative luminance 0.170; OKLCH L 54.0% C 0.154 H 140.3°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#338320
RGBrgb(51, 131, 32)
HSLhsl(108, 61%, 32%)
HSVhsv(108, 76%, 51%)
CMYKcmyk(61.1%, 0%, 75.6%, 48.6%)
CIE-LABlab(48.31, -43.21, 43.62)
CIE-LCHlch(48.31, 61.39, 134.73°)
OKLaboklab(54.01% -0.1185 0.0985)
OKLCHoklch(54.01% 0.154 140.3)
XYZxyz(9.7418, 17.0398, 4.1419)
Luminance0.1704 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338320 #702083
analogous
#658320 #338320 #20833F
triadic
#338320 #203383 #832033
tetradic
#338320 #206583 #702083 #833F20
square
#338320 #206583 #702083 #833F20
split-complementary
#338320 #3F2083 #832065
monochromatic
#0D2108 #205214 #338320 #46B42C #65D34A

Accessibility & contrast

On white

4.76
#338320 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#338320 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #338320
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338320#FFFFFF#000000##FFFFFF
##3383201.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#87770D
Deuteranopia (green-blind)
#7D702A
Tritanopia (blue-blind)
#287F70
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #338320;
/* rgb */ color: rgb(51, 131, 32);
/* oklch */ color: oklch(54.0% 0.154 140.3);
Tailwind
colors: {
  custom: {
    50: '#75a862',
    500: '#338320',
    950: '#000000',
  },
}
SCSS
$custom: #338320;
$custom-light: #75a862;
$custom-dark: #000000;
JSON
{
  "hex": "#338320",
  "rgb": {
    "r": 51,
    "g": 131,
    "b": 32
  },
  "hsl": {
    "h": 108.485,
    "s": 60.736,
    "l": 31.961
  },
  "oklch": {
    "l": 0.54011,
    "c": 0.15406,
    "h": 140.3
  },
  "luminance": 0.17041
}

Semantic roles & 50–950 ramp

primary
#338320
secondary
#A149B6
accent
#44E4C5
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091005
muted
#7B7F7A

Preview Lab

Preview with #338320

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

Preview Lab → · Contrast checker → · Palette generator →

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