#338E16#338E16

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

Color values

HEX#338E16
RGBrgb(51, 142, 22)
HSLhsl(106, 73%, 32%)
HSVhsv(106, 85%, 56%)
CMYKcmyk(64.1%, 0%, 84.5%, 44.3%)
CIE-LABlab(51.96, -47.92, 50.40)
CIE-LCHlch(51.96, 69.55, 133.55°)
OKLaboklab(57.01% -0.1317 0.1112)
OKLCHoklch(57.01% 0.172 139.8)
XYZxyz(11.1826, 20.1067, 4.0506)
Luminance0.2011 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338E16 #71168E
analogous
#6F8E16 #338E16 #168E35
triadic
#338E16 #16338E #8E1633
tetradic
#338E16 #166F8E #71168E #8E3516
square
#338E16 #166F8E #71168E #8E3516
split-complementary
#338E16 #35168E #8E166F
monochromatic
#0D2406 #20590E #338E16 #46C31E #65E13D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##338E16#FFFFFF#000000##000000
##338E161.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)
#877926
Tritanopia (blue-blind)
#268979
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #338e16;
/* rgb */ color: rgb(51, 142, 22);
/* oklch */ color: oklch(57.0% 0.172 139.8);
Tailwind
colors: {
  custom: {
    50: '#77b060',
    500: '#338e16',
    950: '#000000',
  },
}
SCSS
$custom: #338e16;
$custom-light: #77b060;
$custom-dark: #000000;
JSON
{
  "hex": "#338e16",
  "rgb": {
    "r": 51,
    "g": 142,
    "b": 22
  },
  "hsl": {
    "h": 105.5,
    "s": 73.171,
    "l": 32.157
  },
  "oklch": {
    "l": 0.5701,
    "c": 0.17237,
    "h": 139.8
  },
  "luminance": 0.20108
}

Semantic roles & 50–950 ramp

primary
#338E16
secondary
#A23FC1
accent
#38F0C3
background
#F7FAF5
surface
#EEF5EA
border
#C9CFC6
text
#0A1105
muted
#7C8079

Preview Lab

Preview with #338E16

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

Preview Lab → · Contrast checker → · Palette generator →

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