#338A18#338A18

#338A18 is a mid, vivid green. Relative luminance 0.189; OKLCH L 55.9% C 0.167 H 139.8°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#338A18
RGBrgb(51, 138, 24)
HSLhsl(106, 70%, 32%)
HSVhsv(106, 83%, 54%)
CMYKcmyk(63%, 0%, 82.6%, 45.9%)
CIE-LABlab(50.62, -46.36, 48.60)
CIE-LCHlch(50.62, 67.16, 133.65°)
OKLaboklab(55.91% -0.1274 0.1077)
OKLCHoklch(55.91% 0.167 139.8)
XYZxyz(10.6181, 18.9457, 3.9613)
Luminance0.1895 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338A18 #6F188A
analogous
#6C8A18 #338A18 #188A36
triadic
#338A18 #18338A #8A1833
tetradic
#338A18 #186C8A #6F188A #8A3618
square
#338A18 #186C8A #6F188A #8A3618
split-complementary
#338A18 #36188A #8A186C
monochromatic
#0C2206 #20560F #338A18 #46BE21 #64DE3F

Accessibility & contrast

On white

4.38
#338A18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#338A18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338A18
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338A18#FFFFFF#000000##000000
##338A181.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D00
Deuteranopia (green-blind)
#837626
Tritanopia (blue-blind)
#278575
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #338a18;
/* rgb */ color: rgb(51, 138, 24);
/* oklch */ color: oklch(55.9% 0.167 139.8);
Tailwind
colors: {
  custom: {
    50: '#77ad60',
    500: '#338a18',
    950: '#000000',
  },
}
SCSS
$custom: #338a18;
$custom-light: #77ad60;
$custom-dark: #000000;
JSON
{
  "hex": "#338a18",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 24
  },
  "hsl": {
    "h": 105.789,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.55909,
    "c": 0.16685,
    "h": 139.8
  },
  "luminance": 0.18947
}

Semantic roles & 50–950 ramp

primary
#338A18
secondary
#A040BD
accent
#3BEDC3
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A1005
muted
#7C7F79

Preview Lab

Preview with #338A18

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

Preview Lab → · Contrast checker → · Palette generator →

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