#338218#338218

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

Color values

HEX#338218
RGBrgb(51, 130, 24)
HSLhsl(105, 69%, 30%)
HSVhsv(105, 82%, 51%)
CMYKcmyk(60.8%, 0%, 81.5%, 49%)
CIE-LABlab(47.92, -43.39, 46.06)
CIE-LCHlch(47.92, 63.28, 133.29°)
OKLaboklab(53.68% -0.1194 0.1024)
OKLCHoklch(53.68% 0.157 139.4)
XYZxyz(9.5123, 16.7342, 3.5927)
Luminance0.1673 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338218 #671882
analogous
#688218 #338218 #188232
triadic
#338218 #183382 #821833
tetradic
#338218 #186882 #671882 #823218
square
#338218 #186882 #671882 #823218
split-complementary
#338218 #321882 #821868
monochromatic
#0A1B05 #1F4E0E #338218 #47B622 #63DB3A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##338218#FFFFFF#000000##FFFFFF
##3382181.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: #338218;
/* rgb */ color: rgb(51, 130, 24);
/* oklch */ color: oklch(53.7% 0.157 139.4);
Tailwind
colors: {
  custom: {
    50: '#75a75f',
    500: '#338218',
    950: '#000000',
  },
}
SCSS
$custom: #338218;
$custom-light: #75a75f;
$custom-dark: #000000;
JSON
{
  "hex": "#338218",
  "rgb": {
    "r": 51,
    "g": 130,
    "b": 24
  },
  "hsl": {
    "h": 104.717,
    "s": 68.831,
    "l": 30.196
  },
  "oklch": {
    "l": 0.53676,
    "c": 0.15733,
    "h": 139.4
  },
  "luminance": 0.16735
}

Semantic roles & 50–950 ramp

primary
#338218
secondary
#9840B6
accent
#3CECBF
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #338218

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

Preview Lab → · Contrast checker → · Palette generator →

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