#338E1A#338E1A

#338E1A is a mid, vivid green. Relative luminance 0.201; OKLCH L 57.0% C 0.171 H 140.1°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#338E1A
RGBrgb(51, 142, 26)
HSLhsl(107, 69%, 33%)
HSVhsv(107, 82%, 56%)
CMYKcmyk(64.1%, 0%, 81.7%, 44.3%)
CIE-LABlab(51.98, -47.70, 49.25)
CIE-LCHlch(51.98, 68.56, 134.08°)
OKLaboklab(57.03% -0.1309 0.1094)
OKLCHoklch(57.03% 0.171 140.1)
XYZxyz(11.2242, 20.1233, 4.2698)
Luminance0.2012 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338E1A #751A8E
analogous
#6D8E1A #338E1A #1A8E3B
triadic
#338E1A #1A338E #8E1A33
tetradic
#338E1A #1A6D8E #751A8E #8E3B1A
square
#338E1A #1A6D8E #751A8E #8E3B1A
split-complementary
#338E1A #3B1A8E #8E1A6D
monochromatic
#0E2707 #205A11 #338E1A #46C223 #66DD45

Accessibility & contrast

On white

4.18
#338E1A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#338E1A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338E1A
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338E1A#FFFFFF#000000##000000
##338E1A1.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#928000
Deuteranopia (green-blind)
#877928
Tritanopia (blue-blind)
#268979
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #338e1a;
/* rgb */ color: rgb(51, 142, 26);
/* oklch */ color: oklch(57.0% 0.171 140.1);
Tailwind
colors: {
  custom: {
    50: '#77b061',
    500: '#338e1a',
    950: '#000000',
  },
}
SCSS
$custom: #338e1a;
$custom-light: #77b061;
$custom-dark: #000000;
JSON
{
  "hex": "#338e1a",
  "rgb": {
    "r": 51,
    "g": 142,
    "b": 26
  },
  "hsl": {
    "h": 107.069,
    "s": 69.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.57032,
    "c": 0.17058,
    "h": 140.1
  },
  "luminance": 0.20124
}

Semantic roles & 50–950 ramp

primary
#338E1A
secondary
#A445BE
accent
#3CECC6
background
#F7FAF6
surface
#EEF5EB
border
#C9CFC6
text
#0A1005
muted
#7C7F7A

Preview Lab

Preview with #338E1A

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

Preview Lab → · Contrast checker → · Palette generator →

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