#338F20#338F20

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

Color values

HEX#338F20
RGBrgb(51, 143, 32)
HSLhsl(110, 63%, 34%)
HSVhsv(110, 78%, 56%)
CMYKcmyk(64.3%, 0%, 77.6%, 43.9%)
CIE-LABlab(52.34, -47.66, 47.63)
CIE-LCHlch(52.34, 67.38, 135.02°)
OKLaboklab(57.35% -0.1305 0.1069)
OKLCHoklch(57.35% 0.169 140.7)
XYZxyz(11.4479, 20.4519, 4.7105)
Luminance0.2045 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338F20 #7C208F
analogous
#6B8F20 #338F20 #208F45
triadic
#338F20 #20338F #8F2033
tetradic
#338F20 #206B8F #7C208F #8F4520
square
#338F20 #206B8F #7C208F #8F4520
split-complementary
#338F20 #45208F #8F206B
monochromatic
#0F2B0A #215D15 #338F20 #45C12B #68D851

Accessibility & contrast

On white

4.13
#338F20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##338F20#FFFFFF#000000##000000
##338F201.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #338f20;
/* rgb */ color: rgb(51, 143, 32);
/* oklch */ color: oklch(57.3% 0.169 140.7);
Tailwind
colors: {
  custom: {
    50: '#77b164',
    500: '#338f20',
    950: '#000000',
  },
}
SCSS
$custom: #338f20;
$custom-light: #77b164;
$custom-dark: #000000;
JSON
{
  "hex": "#338f20",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 32
  },
  "hsl": {
    "h": 109.73,
    "s": 63.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.57347,
    "c": 0.16866,
    "h": 140.7
  },
  "luminance": 0.20453
}

Semantic roles & 50–950 ramp

primary
#338F20
secondary
#A94FBB
accent
#41E6CA
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1106
muted
#7C807A

Preview Lab

Preview with #338F20

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

Preview Lab → · Contrast checker → · Palette generator →

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