#338817#338817

#338817 is a mid, vivid green. Relative luminance 0.184; OKLCH L 55.3% C 0.165 H 139.6°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#338817
RGBrgb(51, 136, 23)
HSLhsl(105, 71%, 31%)
HSVhsv(105, 83%, 53%)
CMYKcmyk(62.5%, 0%, 83.1%, 46.7%)
CIE-LABlab(49.95, -45.69, 48.27)
CIE-LCHlch(49.95, 66.46, 133.43°)
OKLaboklab(55.35% -0.1257 0.1069)
OKLCHoklch(55.35% 0.165 139.6)
XYZxyz(10.3236, 18.3730, 3.8128)
Luminance0.1837 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338817 #6C1788
analogous
#6B8817 #338817 #178833
triadic
#338817 #173388 #881733
tetradic
#338817 #176B88 #6C1788 #883317
square
#338817 #176B88 #6C1788 #883317
split-complementary
#338817 #331788 #88176B
monochromatic
#0C1F05 #1F540E #338817 #47BC20 #64DE3B

Accessibility & contrast

On white

4.49
#338817 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.67
#338817 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338817
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338817#FFFFFF#000000##000000
##3388171.004.494.674.67
#FFFFFF4.491.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B00
Deuteranopia (green-blind)
#827425
Tritanopia (blue-blind)
#288373
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #338817;
/* rgb */ color: rgb(51, 136, 23);
/* oklch */ color: oklch(55.3% 0.165 139.6);
Tailwind
colors: {
  custom: {
    50: '#76ab5f',
    500: '#338817',
    950: '#000000',
  },
}
SCSS
$custom: #338817;
$custom-light: #76ab5f;
$custom-dark: #000000;
JSON
{
  "hex": "#338817",
  "rgb": {
    "r": 51,
    "g": 136,
    "b": 23
  },
  "hsl": {
    "h": 105.133,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.55346,
    "c": 0.16496,
    "h": 139.6
  },
  "luminance": 0.18374
}

Semantic roles & 50–950 ramp

primary
#338817
secondary
#9D3FBC
accent
#3AEEC1
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#091005
muted
#7B7F79

Preview Lab

Preview with #338817

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

Preview Lab → · Contrast checker → · Palette generator →

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