#338A1A#338A1A

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

Color values

HEX#338A1A
RGBrgb(51, 138, 26)
HSLhsl(107, 68%, 32%)
HSVhsv(107, 81%, 54%)
CMYKcmyk(63%, 0%, 81.2%, 45.9%)
CIE-LABlab(50.63, -46.24, 47.99)
CIE-LCHlch(50.63, 66.64, 133.94°)
OKLaboklab(55.92% -0.127 0.1067)
OKLCHoklch(55.92% 0.166 140)
XYZxyz(10.6397, 18.9543, 4.0749)
Luminance0.1895 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338A1A #711A8A
analogous
#6B8A1A #338A1A #1A8A39
triadic
#338A1A #1A338A #8A1A33
tetradic
#338A1A #1A6B8A #711A8A #8A391A
square
#338A1A #1A6B8A #711A8A #8A391A
split-complementary
#338A1A #391A8A #8A1A6B
monochromatic
#0D2307 #205710 #338A1A #46BD24 #65DC43

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##338A1A#FFFFFF#000000##000000
##338A1A1.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: #338a1a;
/* rgb */ color: rgb(51, 138, 26);
/* oklch */ color: oklch(55.9% 0.166 140.0);
Tailwind
colors: {
  custom: {
    50: '#76ad61',
    500: '#338a1a',
    950: '#000000',
  },
}
SCSS
$custom: #338a1a;
$custom-light: #76ad61;
$custom-dark: #000000;
JSON
{
  "hex": "#338a1a",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 26
  },
  "hsl": {
    "h": 106.607,
    "s": 68.293,
    "l": 32.157
  },
  "oklch": {
    "l": 0.55921,
    "c": 0.16589,
    "h": 140
  },
  "luminance": 0.18955
}

Semantic roles & 50–950 ramp

primary
#338A1A
secondary
#A243BD
accent
#3DEBC4
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A1005
muted
#7C7F7A

Preview Lab

Preview with #338A1A

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

Preview Lab → · Contrast checker → · Palette generator →

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