#338A19#338A19

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

Color values

HEX#338A19
RGBrgb(51, 138, 25)
HSLhsl(106, 69%, 32%)
HSVhsv(106, 82%, 54%)
CMYKcmyk(63%, 0%, 81.9%, 45.9%)
CIE-LABlab(50.63, -46.30, 48.30)
CIE-LCHlch(50.63, 66.91, 133.79°)
OKLaboklab(55.92% -0.1272 0.1072)
OKLCHoklch(55.92% 0.166 139.9)
XYZxyz(10.6287, 18.9500, 4.0171)
Luminance0.1895 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338A19 #70198A
analogous
#6C8A19 #338A19 #198A38
triadic
#338A19 #19338A #8A1933
tetradic
#338A19 #196C8A #70198A #8A3819
square
#338A19 #196C8A #70198A #8A3819
split-complementary
#338A19 #38198A #8A196C
monochromatic
#0D2206 #205610 #338A19 #46BE22 #65DD41

Accessibility & contrast

On white

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

On black

4.79
#338A19 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338A19
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338A19#FFFFFF#000000##000000
##338A191.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D00
Deuteranopia (green-blind)
#837627
Tritanopia (blue-blind)
#278575
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #338a19;
/* rgb */ color: rgb(51, 138, 25);
/* oklch */ color: oklch(55.9% 0.166 139.9);
Tailwind
colors: {
  custom: {
    50: '#77ad60',
    500: '#338a19',
    950: '#000000',
  },
}
SCSS
$custom: #338a19;
$custom-light: #77ad60;
$custom-dark: #000000;
JSON
{
  "hex": "#338a19",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 25
  },
  "hsl": {
    "h": 106.195,
    "s": 69.325,
    "l": 31.961
  },
  "oklch": {
    "l": 0.55915,
    "c": 0.16638,
    "h": 139.9
  },
  "luminance": 0.18951
}

Semantic roles & 50–950 ramp

primary
#338A19
secondary
#A142BD
accent
#3CECC4
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A1005
muted
#7C7F79

Preview Lab

Preview with #338A19

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

Preview Lab → · Contrast checker → · Palette generator →

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