#338A1D#338A1D

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

Color values

HEX#338A1D
RGBrgb(51, 138, 29)
HSLhsl(108, 65%, 33%)
HSVhsv(108, 79%, 54%)
CMYKcmyk(63%, 0%, 79%, 45.9%)
CIE-LABlab(50.65, -46.05, 47.01)
CIE-LCHlch(50.65, 65.81, 134.41°)
OKLaboklab(55.94% -0.1263 0.1051)
OKLCHoklch(55.94% 0.164 140.2)
XYZxyz(10.6750, 18.9685, 4.2609)
Luminance0.1897 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338A1D #741D8A
analogous
#698A1D #338A1D #1D8A3E
triadic
#338A1D #1D338A #8A1D33
tetradic
#338A1D #1D698A #741D8A #8A3E1D
square
#338A1D #1D698A #741D8A #8A3E1D
split-complementary
#338A1D #3E1D8A #8A1D69
monochromatic
#0E2508 #205712 #338A1D #46BD28 #66D949

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##338A1D#FFFFFF#000000##000000
##338A1D1.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)
#8E7D02
Deuteranopia (green-blind)
#837629
Tritanopia (blue-blind)
#278576
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #338a1d;
/* rgb */ color: rgb(51, 138, 29);
/* oklch */ color: oklch(55.9% 0.164 140.2);
Tailwind
colors: {
  custom: {
    50: '#76ad62',
    500: '#338a1d',
    950: '#000000',
  },
}
SCSS
$custom: #338a1d;
$custom-light: #76ad62;
$custom-dark: #000000;
JSON
{
  "hex": "#338a1d",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 29
  },
  "hsl": {
    "h": 107.89,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.5594,
    "c": 0.16434,
    "h": 140.2
  },
  "luminance": 0.18969
}

Semantic roles & 50–950 ramp

primary
#338A1D
secondary
#A448BB
accent
#40E8C6
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#091005
muted
#7B7F7A

Preview Lab

Preview with #338A1D

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

Preview Lab → · Contrast checker → · Palette generator →

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