#338918#338918

#338918 is a mid, vivid green. Relative luminance 0.187; OKLCH L 55.6% C 0.166 H 139.7°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#338918
RGBrgb(51, 137, 24)
HSLhsl(106, 70%, 32%)
HSVhsv(106, 82%, 54%)
CMYKcmyk(62.8%, 0%, 82.5%, 46.3%)
CIE-LABlab(50.29, -46.00, 48.28)
CIE-LCHlch(50.29, 66.69, 133.61°)
OKLaboklab(55.63% -0.1264 0.1071)
OKLCHoklch(55.63% 0.166 139.7)
XYZxyz(10.4753, 18.6601, 3.9137)
Luminance0.1866 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338918 #6E1889
analogous
#6C8918 #338918 #188936
triadic
#338918 #183389 #891833
tetradic
#338918 #186C89 #6E1889 #893618
square
#338918 #186C89 #6E1889 #893618
split-complementary
#338918 #361889 #89186C
monochromatic
#0C2106 #20550F #338918 #46BD21 #64DD3E

Accessibility & contrast

On white

4.44
#338918 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#338918 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338918
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338918#FFFFFF#000000##000000
##3389181.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C00
Deuteranopia (green-blind)
#837526
Tritanopia (blue-blind)
#278474
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #338918;
/* rgb */ color: rgb(51, 137, 24);
/* oklch */ color: oklch(55.6% 0.166 139.7);
Tailwind
colors: {
  custom: {
    50: '#76ac60',
    500: '#338918',
    950: '#000000',
  },
}
SCSS
$custom: #338918;
$custom-light: #76ac60;
$custom-dark: #000000;
JSON
{
  "hex": "#338918",
  "rgb": {
    "r": 51,
    "g": 137,
    "b": 24
  },
  "hsl": {
    "h": 105.664,
    "s": 70.186,
    "l": 31.569
  },
  "oklch": {
    "l": 0.5563,
    "c": 0.16568,
    "h": 139.7
  },
  "luminance": 0.18661
}

Semantic roles & 50–950 ramp

primary
#338918
secondary
#9F40BD
accent
#3BEDC2
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A1005
muted
#7C7F79

Preview Lab

Preview with #338918

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

Preview Lab → · Contrast checker → · Palette generator →

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