#338517#338517

#338517 is a mid, vivid green. Relative luminance 0.175; OKLCH L 54.5% C 0.161 H 139.5°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#338517
RGBrgb(51, 133, 23)
HSLhsl(105, 71%, 31%)
HSVhsv(105, 83%, 52%)
CMYKcmyk(61.7%, 0%, 82.7%, 47.8%)
CIE-LABlab(48.93, -44.58, 47.33)
CIE-LCHlch(48.93, 65.01, 133.29°)
OKLaboklab(54.51% -0.1227 0.1049)
OKLCHoklch(54.51% 0.161 139.5)
XYZxyz(9.9070, 17.5398, 3.6739)
Luminance0.1754 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338517 #691785
analogous
#6A8517 #338517 #178532
triadic
#338517 #173385 #851733
tetradic
#338517 #176A85 #691785 #853217
square
#338517 #176A85 #691785 #853217
split-complementary
#338517 #321785 #85176A
monochromatic
#0B1D05 #1F510E #338517 #47B920 #63DD3A

Accessibility & contrast

On white

4.66
#338517 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#338517 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #338517
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338517#FFFFFF#000000##FFFFFF
##3385171.004.664.514.66
#FFFFFF4.661.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#897800
Deuteranopia (green-blind)
#7F7224
Tritanopia (blue-blind)
#298071
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #338517;
/* rgb */ color: rgb(51, 133, 23);
/* oklch */ color: oklch(54.5% 0.161 139.5);
Tailwind
colors: {
  custom: {
    50: '#76a95f',
    500: '#338517',
    950: '#000000',
  },
}
SCSS
$custom: #338517;
$custom-light: #76a95f;
$custom-dark: #000000;
JSON
{
  "hex": "#338517",
  "rgb": {
    "r": 51,
    "g": 133,
    "b": 23
  },
  "hsl": {
    "h": 104.727,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.54509,
    "c": 0.16141,
    "h": 139.5
  },
  "luminance": 0.17541
}

Semantic roles & 50–950 ramp

primary
#338517
secondary
#9A3FB9
accent
#3BEDC0
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#091005
muted
#7B7F79

Preview Lab

Preview with #338517

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

Preview Lab → · Contrast checker → · Palette generator →

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