#338C21#338C21

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

Color values

HEX#338C21
RGBrgb(51, 140, 33)
HSLhsl(110, 62%, 34%)
HSVhsv(110, 76%, 55%)
CMYKcmyk(63.6%, 0%, 76.4%, 45.1%)
CIE-LABlab(51.35, -46.49, 46.28)
CIE-LCHlch(51.35, 65.60, 135.13°)
OKLaboklab(56.52% -0.1273 0.1042)
OKLCHoklch(56.52% 0.164 140.7)
XYZxyz(11.0173, 19.5687, 4.6351)
Luminance0.1957 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338C21 #7A218C
analogous
#698C21 #338C21 #218C45
triadic
#338C21 #21338C #8C2133
tetradic
#338C21 #21698C #7A218C #8C4521
square
#338C21 #21698C #7A218C #8C4521
split-complementary
#338C21 #45218C #8C2169
monochromatic
#0F290A #215A15 #338C21 #45BE2D #68D651

Accessibility & contrast

On white

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

On black

4.91
#338C21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338C21
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338C21#FFFFFF#000000##000000
##338C211.004.274.914.91
#FFFFFF4.271.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F0B
Deuteranopia (green-blind)
#85782C
Tritanopia (blue-blind)
#258777
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #338c21;
/* rgb */ color: rgb(51, 140, 33);
/* oklch */ color: oklch(56.5% 0.164 140.7);
Tailwind
colors: {
  custom: {
    50: '#77ae64',
    500: '#338c21',
    950: '#000000',
  },
}
SCSS
$custom: #338c21;
$custom-light: #77ae64;
$custom-dark: #000000;
JSON
{
  "hex": "#338c21",
  "rgb": {
    "r": 51,
    "g": 140,
    "b": 33
  },
  "hsl": {
    "h": 109.907,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.56523,
    "c": 0.16449,
    "h": 140.7
  },
  "luminance": 0.1957
}

Semantic roles & 50–950 ramp

primary
#338C21
secondary
#A84FB9
accent
#43E5CA
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A1006
muted
#7C7F7A

Preview Lab

Preview with #338C21

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

Preview Lab → · Contrast checker → · Palette generator →

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