#338D18#338D18

#338D18 is a mid, vivid green. Relative luminance 0.198; OKLCH L 56.7% C 0.170 H 139.9°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#338D18
RGBrgb(51, 141, 24)
HSLhsl(106, 71%, 32%)
HSVhsv(106, 83%, 55%)
CMYKcmyk(63.8%, 0%, 83%, 44.7%)
CIE-LABlab(51.63, -47.45, 49.53)
CIE-LCHlch(51.63, 68.59, 133.77°)
OKLaboklab(56.74% -0.1303 0.1097)
OKLCHoklch(56.74% 0.17 139.9)
XYZxyz(11.0545, 19.8185, 4.1068)
Luminance0.1982 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338D18 #72188D
analogous
#6D8D18 #338D18 #188D38
triadic
#338D18 #18338D #8D1833
tetradic
#338D18 #186D8D #72188D #8D3818
square
#338D18 #186D8D #72188D #8D3818
split-complementary
#338D18 #38188D #8D186D
monochromatic
#0D2406 #20590F #338D18 #46C121 #65DF41

Accessibility & contrast

On white

4.23
#338D18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#338D18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338D18
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338D18#FFFFFF#000000##000000
##338D181.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#918000
Deuteranopia (green-blind)
#867827
Tritanopia (blue-blind)
#268878
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #338d18;
/* rgb */ color: rgb(51, 141, 24);
/* oklch */ color: oklch(56.7% 0.170 139.9);
Tailwind
colors: {
  custom: {
    50: '#77af60',
    500: '#338d18',
    950: '#000000',
  },
}
SCSS
$custom: #338d18;
$custom-light: #77af60;
$custom-dark: #000000;
JSON
{
  "hex": "#338d18",
  "rgb": {
    "r": 51,
    "g": 141,
    "b": 24
  },
  "hsl": {
    "h": 106.154,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.56743,
    "c": 0.17035,
    "h": 139.9
  },
  "luminance": 0.1982
}

Semantic roles & 50–950 ramp

primary
#338D18
secondary
#A242BF
accent
#3AEEC4
background
#F7FAF6
surface
#EEF5EB
border
#C9CFC6
text
#0A1005
muted
#7C7F7A

Preview Lab

Preview with #338D18

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

Preview Lab → · Contrast checker → · Palette generator →

#338D18 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva