#338F19#338F19

#338F19 is a mid, vivid green. Relative luminance 0.204; OKLCH L 57.3% C 0.172 H 140.1°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#338F19
RGBrgb(51, 143, 25)
HSLhsl(107, 70%, 33%)
HSVhsv(107, 83%, 56%)
CMYKcmyk(64.3%, 0%, 82.5%, 43.9%)
CIE-LABlab(52.31, -48.11, 49.86)
CIE-LCHlch(52.31, 69.29, 133.98°)
OKLaboklab(57.3% -0.1321 0.1105)
OKLCHoklch(57.3% 0.172 140.1)
XYZxyz(11.3626, 20.4178, 4.2617)
Luminance0.2042 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338F19 #75198F
analogous
#6E8F19 #338F19 #198F3A
triadic
#338F19 #19338F #8F1933
tetradic
#338F19 #196E8F #75198F #8F3A19
square
#338F19 #196E8F #75198F #8F3A19
split-complementary
#338F19 #3A198F #8F196E
monochromatic
#0E2707 #205B10 #338F19 #46C322 #66DE44

Accessibility & contrast

On white

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

On black

5.08
#338F19 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338F19
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338F19#FFFFFF#000000##000000
##338F191.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#938100
Deuteranopia (green-blind)
#887A28
Tritanopia (blue-blind)
#258A7A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #338f19;
/* rgb */ color: rgb(51, 143, 25);
/* oklch */ color: oklch(57.3% 0.172 140.1);
Tailwind
colors: {
  custom: {
    50: '#78b161',
    500: '#338f19',
    950: '#000000',
  },
}
SCSS
$custom: #338f19;
$custom-light: #78b161;
$custom-dark: #000000;
JSON
{
  "hex": "#338f19",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 25
  },
  "hsl": {
    "h": 106.78,
    "s": 70.238,
    "l": 32.941
  },
  "oklch": {
    "l": 0.57303,
    "c": 0.17221,
    "h": 140.1
  },
  "luminance": 0.20419
}

Semantic roles & 50–950 ramp

primary
#338F19
secondary
#A444BF
accent
#3BEDC6
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1105
muted
#7C807A

Preview Lab

Preview with #338F19

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

Preview Lab → · Contrast checker → · Palette generator →

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