#338F21#338F21

#338F21 is a mid, vivid green. Relative luminance 0.205; OKLCH L 57.4% C 0.168 H 140.8°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#338F21
RGBrgb(51, 143, 33)
HSLhsl(110, 63%, 35%)
HSVhsv(110, 77%, 56%)
CMYKcmyk(64.3%, 0%, 76.9%, 43.9%)
CIE-LABlab(52.35, -47.59, 47.28)
CIE-LCHlch(52.35, 67.08, 135.19°)
OKLaboklab(57.35% -0.1302 0.1063)
OKLCHoklch(57.35% 0.168 140.8)
XYZxyz(11.4617, 20.4574, 4.7832)
Luminance0.2046 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338F21 #7D218F
analogous
#6A8F21 #338F21 #218F46
triadic
#338F21 #21338F #8F2133
tetradic
#338F21 #216A8F #7D218F #8F4621
square
#338F21 #216A8F #7D218F #8F4621
split-complementary
#338F21 #46218F #8F216A
monochromatic
#102C0A #215D16 #338F21 #45C12C #69D753

Accessibility & contrast

On white

4.12
#338F21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#338F21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338F21
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338F21#FFFFFF#000000##000000
##338F211.004.125.095.09
#FFFFFF4.121.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#938109
Deuteranopia (green-blind)
#887A2D
Tritanopia (blue-blind)
#248A7A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #338f21;
/* rgb */ color: rgb(51, 143, 33);
/* oklch */ color: oklch(57.4% 0.168 140.8);
Tailwind
colors: {
  custom: {
    50: '#77b165',
    500: '#338f21',
    950: '#000000',
  },
}
SCSS
$custom: #338f21;
$custom-light: #77b165;
$custom-dark: #000000;
JSON
{
  "hex": "#338f21",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 33
  },
  "hsl": {
    "h": 110.182,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.57354,
    "c": 0.1681,
    "h": 140.8
  },
  "luminance": 0.20459
}

Semantic roles & 50–950 ramp

primary
#338F21
secondary
#AA51BB
accent
#42E6CB
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1106
muted
#7C807A

Preview Lab

Preview with #338F21

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

Preview Lab → · Contrast checker → · Palette generator →

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