#338F18#338F18

#338F18 is a mid, vivid green. Relative luminance 0.204; OKLCH L 57.3% C 0.173 H 140.0°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#338F18
RGBrgb(51, 143, 24)
HSLhsl(106, 71%, 33%)
HSVhsv(106, 83%, 56%)
CMYKcmyk(64.3%, 0%, 83.2%, 43.9%)
CIE-LABlab(52.30, -48.17, 50.15)
CIE-LCHlch(52.30, 69.54, 133.84°)
OKLaboklab(57.3% -0.1323 0.111)
OKLCHoklch(57.3% 0.173 140)
XYZxyz(11.3520, 20.4136, 4.2060)
Luminance0.2041 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338F18 #74188F
analogous
#6E8F18 #338F18 #188F39
triadic
#338F18 #18338F #8F1833
tetradic
#338F18 #186E8F #74188F #8F3918
square
#338F18 #186E8F #74188F #8F3918
split-complementary
#338F18 #39188F #8F186E
monochromatic
#0E2606 #205B0F #338F18 #46C321 #66DF42

Accessibility & contrast

On white

4.13
#338F18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#338F18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338F18
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338F18#FFFFFF#000000##000000
##338F181.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#938100
Deuteranopia (green-blind)
#887A27
Tritanopia (blue-blind)
#258A79
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #338f18;
/* rgb */ color: rgb(51, 143, 24);
/* oklch */ color: oklch(57.3% 0.173 140.0);
Tailwind
colors: {
  custom: {
    50: '#78b161',
    500: '#338f18',
    950: '#000000',
  },
}
SCSS
$custom: #338f18;
$custom-light: #78b161;
$custom-dark: #000000;
JSON
{
  "hex": "#338f18",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 24
  },
  "hsl": {
    "h": 106.387,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.57298,
    "c": 0.17266,
    "h": 140
  },
  "luminance": 0.20415
}

Semantic roles & 50–950 ramp

primary
#338F18
secondary
#A443C0
accent
#3AEEC5
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1105
muted
#7C807A

Preview Lab

Preview with #338F18

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

Preview Lab → · Contrast checker → · Palette generator →

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