#338C19#338C19

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

Color values

HEX#338C19
RGBrgb(51, 140, 25)
HSLhsl(106, 70%, 32%)
HSVhsv(106, 82%, 55%)
CMYKcmyk(63.6%, 0%, 82.1%, 45.1%)
CIE-LABlab(51.30, -47.03, 48.93)
CIE-LCHlch(51.30, 67.87, 133.87°)
OKLaboklab(56.47% -0.1292 0.1086)
OKLCHoklch(56.47% 0.169 140)
XYZxyz(10.9183, 19.5291, 4.1136)
Luminance0.1953 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338C19 #72198C
analogous
#6C8C19 #338C19 #198C39
triadic
#338C19 #19338C #8C1933
tetradic
#338C19 #196C8C #72198C #8C3919
square
#338C19 #196C8C #72198C #8C3919
split-complementary
#338C19 #39198C #8C196C
monochromatic
#0D2406 #205810 #338C19 #46C022 #65DD42

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##338C19#FFFFFF#000000##000000
##338C191.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)
#907F00
Deuteranopia (green-blind)
#857727
Tritanopia (blue-blind)
#268777
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #338c19;
/* rgb */ color: rgb(51, 140, 25);
/* oklch */ color: oklch(56.5% 0.169 140.0);
Tailwind
colors: {
  custom: {
    50: '#77ae60',
    500: '#338c19',
    950: '#000000',
  },
}
SCSS
$custom: #338c19;
$custom-light: #77ae60;
$custom-dark: #000000;
JSON
{
  "hex": "#338c19",
  "rgb": {
    "r": 51,
    "g": 140,
    "b": 25
  },
  "hsl": {
    "h": 106.435,
    "s": 69.697,
    "l": 32.353
  },
  "oklch": {
    "l": 0.56471,
    "c": 0.16872,
    "h": 140
  },
  "luminance": 0.1953
}

Semantic roles & 50–950 ramp

primary
#338C19
secondary
#A243BE
accent
#3BEDC4
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A1005
muted
#7C7F7A

Preview Lab

Preview with #338C19

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

Preview Lab → · Contrast checker → · Palette generator →

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