#338A1E#338A1E

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

Color values

HEX#338A1E
RGBrgb(51, 138, 30)
HSLhsl(108, 64%, 33%)
HSVhsv(108, 78%, 54%)
CMYKcmyk(63%, 0%, 78.3%, 45.9%)
CIE-LABlab(50.66, -45.98, 46.67)
CIE-LCHlch(50.66, 65.52, 134.57°)
OKLaboklab(55.95% -0.1261 0.1046)
OKLCHoklch(55.95% 0.164 140.3)
XYZxyz(10.6876, 18.9735, 4.3271)
Luminance0.1898 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338A1E #751E8A
analogous
#698A1E #338A1E #1E8A3F
triadic
#338A1E #1E338A #8A1E33
tetradic
#338A1E #1E698A #751E8A #8A3F1E
square
#338A1E #1E698A #751E8A #8A3F1E
split-complementary
#338A1E #3F1E8A #8A1E69
monochromatic
#0E2508 #205813 #338A1E #46BC29 #66D84B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##338A1E#FFFFFF#000000##000000
##338A1E1.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)
#8E7D04
Deuteranopia (green-blind)
#83762A
Tritanopia (blue-blind)
#268576
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #338a1e;
/* rgb */ color: rgb(51, 138, 30);
/* oklch */ color: oklch(55.9% 0.164 140.3);
Tailwind
colors: {
  custom: {
    50: '#76ad62',
    500: '#338a1e',
    950: '#000000',
  },
}
SCSS
$custom: #338a1e;
$custom-light: #76ad62;
$custom-dark: #000000;
JSON
{
  "hex": "#338a1e",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 30
  },
  "hsl": {
    "h": 108.333,
    "s": 64.286,
    "l": 32.941
  },
  "oklch": {
    "l": 0.55946,
    "c": 0.1638,
    "h": 140.3
  },
  "luminance": 0.18975
}

Semantic roles & 50–950 ramp

primary
#338A1E
secondary
#A44ABA
accent
#41E7C7
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #338A1E

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

Preview Lab → · Contrast checker → · Palette generator →

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