#338C22#338C22

#338C22 is a mid, vivid green. Relative luminance 0.196; OKLCH L 56.5% C 0.164 H 140.8°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#338C22
RGBrgb(51, 140, 34)
HSLhsl(110, 61%, 34%)
HSVhsv(110, 76%, 55%)
CMYKcmyk(63.6%, 0%, 75.7%, 45.1%)
CIE-LABlab(51.35, -46.42, 45.92)
CIE-LCHlch(51.35, 65.29, 135.31°)
OKLaboklab(56.53% -0.127 0.1036)
OKLCHoklch(56.53% 0.164 140.8)
XYZxyz(11.0315, 19.5744, 4.7100)
Luminance0.1958 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338C22 #7B228C
analogous
#688C22 #338C22 #228C46
triadic
#338C22 #22338C #8C2233
tetradic
#338C22 #22688C #7B228C #8C4622
square
#338C22 #22688C #7B228C #8C4622
split-complementary
#338C22 #46228C #8C2268
monochromatic
#0F2A0A #215B16 #338C22 #45BD2E #68D553

Accessibility & contrast

On white

4.27
#338C22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#338C22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338C22
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338C22#FFFFFF#000000##000000
##338C221.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F0D
Deuteranopia (green-blind)
#85782D
Tritanopia (blue-blind)
#258778
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #338c22;
/* rgb */ color: rgb(51, 140, 34);
/* oklch */ color: oklch(56.5% 0.164 140.8);
Tailwind
colors: {
  custom: {
    50: '#76ae65',
    500: '#338c22',
    950: '#000000',
  },
}
SCSS
$custom: #338c22;
$custom-light: #76ae65;
$custom-dark: #000000;
JSON
{
  "hex": "#338c22",
  "rgb": {
    "r": 51,
    "g": 140,
    "b": 34
  },
  "hsl": {
    "h": 110.377,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.5653,
    "c": 0.16391,
    "h": 140.8
  },
  "luminance": 0.19575
}

Semantic roles & 50–950 ramp

primary
#338C22
secondary
#A851B9
accent
#44E4CA
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A1006
muted
#7C7F7A

Preview Lab

Preview with #338C22

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

Preview Lab → · Contrast checker → · Palette generator →

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