#338A21#338A21

#338A21 is a mid, vivid green. Relative luminance 0.190; OKLCH L 56.0% C 0.162 H 140.6°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#338A21
RGBrgb(51, 138, 33)
HSLhsl(110, 61%, 34%)
HSVhsv(110, 76%, 54%)
CMYKcmyk(63%, 0%, 76.1%, 45.9%)
CIE-LABlab(50.67, -45.76, 45.61)
CIE-LCHlch(50.67, 64.61, 135.09°)
OKLaboklab(55.97% -0.1253 0.1028)
OKLCHoklch(55.97% 0.162 140.6)
XYZxyz(10.7277, 18.9896, 4.5386)
Luminance0.1899 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338A21 #78218A
analogous
#678A21 #338A21 #218A43
triadic
#338A21 #21338A #8A2133
tetradic
#338A21 #21678A #78218A #8A4321
square
#338A21 #21678A #78218A #8A4321
split-complementary
#338A21 #43218A #8A2167
monochromatic
#0E2709 #215915 #338A21 #45BB2D #67D550

Accessibility & contrast

On white

4.38
#338A21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#338A21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338A21
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338A21#FFFFFF#000000##000000
##338A211.004.384.804.80
#FFFFFF4.381.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D0C
Deuteranopia (green-blind)
#83762C
Tritanopia (blue-blind)
#268576
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #338a21;
/* rgb */ color: rgb(51, 138, 33);
/* oklch */ color: oklch(56.0% 0.162 140.6);
Tailwind
colors: {
  custom: {
    50: '#76ad64',
    500: '#338a21',
    950: '#000000',
  },
}
SCSS
$custom: #338a21;
$custom-light: #76ad64;
$custom-dark: #000000;
JSON
{
  "hex": "#338a21",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 33
  },
  "hsl": {
    "h": 109.714,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.55968,
    "c": 0.16207,
    "h": 140.6
  },
  "luminance": 0.18991
}

Semantic roles & 50–950 ramp

primary
#338A21
secondary
#A64EB9
accent
#43E5C9
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #338A21

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

Preview Lab → · Contrast checker → · Palette generator →

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