#338617#338617

#338617 is a mid, vivid green. Relative luminance 0.178; OKLCH L 54.8% C 0.163 H 139.5°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#338617
RGBrgb(51, 134, 23)
HSLhsl(105, 71%, 31%)
HSVhsv(105, 83%, 53%)
CMYKcmyk(61.9%, 0%, 82.8%, 47.5%)
CIE-LABlab(49.27, -44.95, 47.64)
CIE-LCHlch(49.27, 65.50, 133.33°)
OKLaboklab(54.79% -0.1237 0.1056)
OKLCHoklch(54.79% 0.163 139.5)
XYZxyz(10.0446, 17.8149, 3.7197)
Luminance0.1782 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338617 #6A1786
analogous
#6A8617 #338617 #178632
triadic
#338617 #173386 #861733
tetradic
#338617 #176A86 #6A1786 #863217
square
#338617 #176A86 #6A1786 #863217
split-complementary
#338617 #321786 #86176A
monochromatic
#0B1E05 #1F520E #338617 #47BA20 #63DD3A

Accessibility & contrast

On white

4.60
#338617 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#338617 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #338617
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338617#FFFFFF#000000##FFFFFF
##3386171.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#8A7900
Deuteranopia (green-blind)
#807325
Tritanopia (blue-blind)
#298172
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #338617;
/* rgb */ color: rgb(51, 134, 23);
/* oklch */ color: oklch(54.8% 0.163 139.5);
Tailwind
colors: {
  custom: {
    50: '#76aa5f',
    500: '#338617',
    950: '#000000',
  },
}
SCSS
$custom: #338617;
$custom-light: #76aa5f;
$custom-dark: #000000;
JSON
{
  "hex": "#338617",
  "rgb": {
    "r": 51,
    "g": 134,
    "b": 23
  },
  "hsl": {
    "h": 104.865,
    "s": 70.701,
    "l": 30.784
  },
  "oklch": {
    "l": 0.54788,
    "c": 0.1626,
    "h": 139.5
  },
  "luminance": 0.17816
}

Semantic roles & 50–950 ramp

primary
#338617
secondary
#9B3FBA
accent
#3AEDC0
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#091005
muted
#7B7F79

Preview Lab

Preview with #338617

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

Preview Lab → · Contrast checker → · Palette generator →

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