#338C1E#338C1E

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

Color values

HEX#338C1E
RGBrgb(51, 140, 30)
HSLhsl(109, 65%, 33%)
HSVhsv(109, 79%, 55%)
CMYKcmyk(63.6%, 0%, 78.6%, 45.1%)
CIE-LABlab(51.33, -46.71, 47.33)
CIE-LCHlch(51.33, 66.50, 134.63°)
OKLaboklab(56.5% -0.128 0.1059)
OKLCHoklch(56.5% 0.166 140.4)
XYZxyz(10.9771, 19.5527, 4.4236)
Luminance0.1955 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338C1E #771E8C
analogous
#6A8C1E #338C1E #1E8C40
triadic
#338C1E #1E338C #8C1E33
tetradic
#338C1E #1E6A8C #771E8C #8C401E
square
#338C1E #1E6A8C #771E8C #8C401E
split-complementary
#338C1E #401E8C #8C1E6A
monochromatic
#0E2708 #215A13 #338C1E #45BE29 #67D94C

Accessibility & contrast

On white

4.28
#338C1E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##338C1E#FFFFFF#000000##000000
##338C1E1.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F03
Deuteranopia (green-blind)
#85782A
Tritanopia (blue-blind)
#268777
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #338c1e;
/* rgb */ color: rgb(51, 140, 30);
/* oklch */ color: oklch(56.5% 0.166 140.4);
Tailwind
colors: {
  custom: {
    50: '#77ae63',
    500: '#338c1e',
    950: '#000000',
  },
}
SCSS
$custom: #338c1e;
$custom-light: #77ae63;
$custom-dark: #000000;
JSON
{
  "hex": "#338c1e",
  "rgb": {
    "r": 51,
    "g": 140,
    "b": 30
  },
  "hsl": {
    "h": 108.545,
    "s": 64.706,
    "l": 33.333
  },
  "oklch": {
    "l": 0.56502,
    "c": 0.16619,
    "h": 140.4
  },
  "luminance": 0.19554
}

Semantic roles & 50–950 ramp

primary
#338C1E
secondary
#A64BBB
accent
#40E8C8
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A1006
muted
#7C7F7A

Preview Lab

Preview with #338C1E

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

Preview Lab → · Contrast checker → · Palette generator →

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