#338D19#338D19

#338D19 is a mid, vivid green. Relative luminance 0.198; OKLCH L 56.7% C 0.170 H 140.0°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#338D19
RGBrgb(51, 141, 25)
HSLhsl(107, 70%, 33%)
HSVhsv(107, 82%, 55%)
CMYKcmyk(63.8%, 0%, 82.3%, 44.7%)
CIE-LABlab(51.64, -47.39, 49.24)
CIE-LCHlch(51.64, 68.34, 133.91°)
OKLaboklab(56.75% -0.1301 0.1092)
OKLCHoklch(56.75% 0.17 140)
XYZxyz(11.0651, 19.8227, 4.1626)
Luminance0.1982 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338D19 #73198D
analogous
#6D8D19 #338D19 #198D39
triadic
#338D19 #19338D #8D1933
tetradic
#338D19 #196D8D #73198D #8D3919
square
#338D19 #196D8D #73198D #8D3919
split-complementary
#338D19 #39198D #8D196D
monochromatic
#0D2507 #205910 #338D19 #46C122 #65DE43

Accessibility & contrast

On white

4.23
#338D19 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#338D19 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338D19
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338D19#FFFFFF#000000##000000
##338D191.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#918000
Deuteranopia (green-blind)
#867827
Tritanopia (blue-blind)
#268878
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #338d19;
/* rgb */ color: rgb(51, 141, 25);
/* oklch */ color: oklch(56.7% 0.170 140.0);
Tailwind
colors: {
  custom: {
    50: '#77af61',
    500: '#338d19',
    950: '#000000',
  },
}
SCSS
$custom: #338d19;
$custom-light: #77af61;
$custom-dark: #000000;
JSON
{
  "hex": "#338d19",
  "rgb": {
    "r": 51,
    "g": 141,
    "b": 25
  },
  "hsl": {
    "h": 106.552,
    "s": 69.88,
    "l": 32.549
  },
  "oklch": {
    "l": 0.56749,
    "c": 0.16989,
    "h": 140
  },
  "luminance": 0.19824
}

Semantic roles & 50–950 ramp

primary
#338D19
secondary
#A343BF
accent
#3BEDC5
background
#F7FAF6
surface
#EEF5EB
border
#C9CFC6
text
#0A1005
muted
#7C7F7A

Preview Lab

Preview with #338D19

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

Preview Lab → · Contrast checker → · Palette generator →

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