#338C20#338C20

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

Color values

HEX#338C20
RGBrgb(51, 140, 32)
HSLhsl(109, 63%, 34%)
HSVhsv(109, 77%, 55%)
CMYKcmyk(63.6%, 0%, 77.1%, 45.1%)
CIE-LABlab(51.34, -46.57, 46.64)
CIE-LCHlch(51.34, 65.91, 134.96°)
OKLaboklab(56.52% -0.1275 0.1048)
OKLCHoklch(56.52% 0.165 140.6)
XYZxyz(11.0035, 19.5632, 4.5624)
Luminance0.1956 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338C20 #79208C
analogous
#698C20 #338C20 #208C43
triadic
#338C20 #20338C #8C2033
tetradic
#338C20 #20698C #79208C #8C4320
square
#338C20 #20698C #79208C #8C4320
split-complementary
#338C20 #43208C #8C2069
monochromatic
#0F2809 #215A15 #338C20 #45BE2B #67D750

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##338C20#FFFFFF#000000##000000
##338C201.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)
#907F08
Deuteranopia (green-blind)
#85782C
Tritanopia (blue-blind)
#258777
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #338c20;
/* rgb */ color: rgb(51, 140, 32);
/* oklch */ color: oklch(56.5% 0.165 140.6);
Tailwind
colors: {
  custom: {
    50: '#77ae64',
    500: '#338c20',
    950: '#000000',
  },
}
SCSS
$custom: #338c20;
$custom-light: #77ae64;
$custom-dark: #000000;
JSON
{
  "hex": "#338c20",
  "rgb": {
    "r": 51,
    "g": 140,
    "b": 32
  },
  "hsl": {
    "h": 109.444,
    "s": 62.791,
    "l": 33.725
  },
  "oklch": {
    "l": 0.56516,
    "c": 0.16508,
    "h": 140.6
  },
  "luminance": 0.19564
}

Semantic roles & 50–950 ramp

primary
#338C20
secondary
#A74EBA
accent
#42E6C9
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A1006
muted
#7C7F7A

Preview Lab

Preview with #338C20

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

Preview Lab → · Contrast checker → · Palette generator →

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