#338217#338217

#338217 is a mid, vivid green. Relative luminance 0.167; OKLCH L 53.7% C 0.158 H 139.3°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#338217
RGBrgb(51, 130, 23)
HSLhsl(104, 70%, 30%)
HSVhsv(104, 82%, 51%)
CMYKcmyk(60.8%, 0%, 82.3%, 49%)
CIE-LABlab(47.92, -43.45, 46.38)
CIE-LCHlch(47.92, 63.55, 133.13°)
OKLaboklab(53.67% -0.1196 0.1029)
OKLCHoklch(53.67% 0.158 139.3)
XYZxyz(9.5021, 16.7301, 3.5389)
Luminance0.1673 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338217 #661782
analogous
#698217 #338217 #178230
triadic
#338217 #173382 #821733
tetradic
#338217 #176982 #661782 #823017
square
#338217 #176982 #661782 #823017
split-complementary
#338217 #301782 #821769
monochromatic
#0A1A05 #1F4E0E #338217 #47B620 #63DC38

Accessibility & contrast

On white

4.83
#338217 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#338217 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #338217
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338217#FFFFFF#000000##FFFFFF
##3382171.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867600
Deuteranopia (green-blind)
#7C6F24
Tritanopia (blue-blind)
#2A7D6E
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #338217;
/* rgb */ color: rgb(51, 130, 23);
/* oklch */ color: oklch(53.7% 0.158 139.3);
Tailwind
colors: {
  custom: {
    50: '#75a75e',
    500: '#338217',
    950: '#000000',
  },
}
SCSS
$custom: #338217;
$custom-light: #75a75e;
$custom-dark: #000000;
JSON
{
  "hex": "#338217",
  "rgb": {
    "r": 51,
    "g": 130,
    "b": 23
  },
  "hsl": {
    "h": 104.299,
    "s": 69.935,
    "l": 30
  },
  "oklch": {
    "l": 0.5367,
    "c": 0.15782,
    "h": 139.3
  },
  "luminance": 0.16731
}

Semantic roles & 50–950 ramp

primary
#338217
secondary
#973EB6
accent
#3BEDBE
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #338217

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

Preview Lab → · Contrast checker → · Palette generator →

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