#338E18#338E18

#338E18 is a mid, vivid green. Relative luminance 0.201; OKLCH L 57.0% C 0.172 H 140.0°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#338E18
RGBrgb(51, 142, 24)
HSLhsl(106, 71%, 33%)
HSVhsv(106, 83%, 56%)
CMYKcmyk(64.1%, 0%, 83.1%, 44.3%)
CIE-LABlab(51.97, -47.81, 49.84)
CIE-LCHlch(51.97, 69.07, 133.81°)
OKLaboklab(57.02% -0.1313 0.1103)
OKLCHoklch(57.02% 0.172 140)
XYZxyz(11.2026, 20.1147, 4.1561)
Luminance0.2012 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338E18 #73188E
analogous
#6E8E18 #338E18 #188E38
triadic
#338E18 #18338E #8E1833
tetradic
#338E18 #186E8E #73188E #8E3818
square
#338E18 #186E8E #73188E #8E3818
split-complementary
#338E18 #38188E #8E186E
monochromatic
#0D2506 #205A0F #338E18 #46C221 #65DF41

Accessibility & contrast

On white

4.18
#338E18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#338E18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338E18
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338E18#FFFFFF#000000##000000
##338E181.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#928000
Deuteranopia (green-blind)
#877927
Tritanopia (blue-blind)
#268979
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #338e18;
/* rgb */ color: rgb(51, 142, 24);
/* oklch */ color: oklch(57.0% 0.172 140.0);
Tailwind
colors: {
  custom: {
    50: '#77b060',
    500: '#338e18',
    950: '#000000',
  },
}
SCSS
$custom: #338e18;
$custom-light: #77b060;
$custom-dark: #000000;
JSON
{
  "hex": "#338e18",
  "rgb": {
    "r": 51,
    "g": 142,
    "b": 24
  },
  "hsl": {
    "h": 106.271,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.57021,
    "c": 0.1715,
    "h": 140
  },
  "luminance": 0.20116
}

Semantic roles & 50–950 ramp

primary
#338E18
secondary
#A342C0
accent
#3AEEC5
background
#F7FAF6
surface
#EEF5EB
border
#C9CFC6
text
#0A1005
muted
#7C7F7A

Preview Lab

Preview with #338E18

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

Preview Lab → · Contrast checker → · Palette generator →

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