#338415#338415

#338415 is a mid, vivid green. Relative luminance 0.173; OKLCH L 54.2% C 0.161 H 139.3°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#338415
RGBrgb(51, 132, 21)
HSLhsl(104, 73%, 30%)
HSVhsv(104, 84%, 52%)
CMYKcmyk(61.4%, 0%, 84.1%, 48.2%)
CIE-LABlab(48.59, -44.31, 47.60)
CIE-LCHlch(48.59, 65.04, 132.95°)
OKLaboklab(54.22% -0.1221 0.1052)
OKLCHoklch(54.22% 0.161 139.3)
XYZxyz(9.7515, 17.2596, 3.5269)
Luminance0.1726 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338415 #661584
analogous
#6A8415 #338415 #15842F
triadic
#338415 #153384 #841533
tetradic
#338415 #156A84 #661584 #842F15
square
#338415 #156A84 #661584 #842F15
split-complementary
#338415 #2F1584 #84156A
monochromatic
#0A1A04 #1F4F0D #338415 #47B91D #63DF35

Accessibility & contrast

On white

4.72
#338415 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#338415 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #338415
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338415#FFFFFF#000000##FFFFFF
##3384151.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#887700
Deuteranopia (green-blind)
#7E7123
Tritanopia (blue-blind)
#297F70
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #338415;
/* rgb */ color: rgb(51, 132, 21);
/* oklch */ color: oklch(54.2% 0.161 139.3);
Tailwind
colors: {
  custom: {
    50: '#76a95e',
    500: '#338415',
    950: '#000000',
  },
}
SCSS
$custom: #338415;
$custom-light: #76a95e;
$custom-dark: #000000;
JSON
{
  "hex": "#338415",
  "rgb": {
    "r": 51,
    "g": 132,
    "b": 21
  },
  "hsl": {
    "h": 103.784,
    "s": 72.549,
    "l": 30
  },
  "oklch": {
    "l": 0.54218,
    "c": 0.16114,
    "h": 139.3
  },
  "luminance": 0.1726
}

Semantic roles & 50–950 ramp

primary
#338415
secondary
#973CB9
accent
#39EFBE
background
#F7FAF5
surface
#EEF4E9
border
#C9CEC5
text
#091005
muted
#7B7F79

Preview Lab

Preview with #338415

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

Preview Lab → · Contrast checker → · Palette generator →

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