#338D1A#338D1A

#338D1A is a mid, vivid green. Relative luminance 0.198; OKLCH L 56.8% C 0.169 H 140.1°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#338D1A
RGBrgb(51, 141, 26)
HSLhsl(107, 69%, 33%)
HSVhsv(107, 82%, 55%)
CMYKcmyk(63.8%, 0%, 81.6%, 44.7%)
CIE-LABlab(51.64, -47.33, 48.94)
CIE-LCHlch(51.64, 68.08, 134.05°)
OKLaboklab(56.75% -0.1299 0.1087)
OKLCHoklch(56.75% 0.169 140.1)
XYZxyz(11.0761, 19.8271, 4.2204)
Luminance0.1983 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338D1A #741A8D
analogous
#6C8D1A #338D1A #1A8D3B
triadic
#338D1A #1A338D #8D1A33
tetradic
#338D1A #1A6C8D #741A8D #8D3B1A
square
#338D1A #1A6C8D #741A8D #8D3B1A
split-complementary
#338D1A #3B1A8D #8D1A6C
monochromatic
#0E2607 #205910 #338D1A #46C124 #66DD45

Accessibility & contrast

On white

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

On black

4.97
#338D1A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338D1A
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338D1A#FFFFFF#000000##000000
##338D1A1.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #338d1a;
/* rgb */ color: rgb(51, 141, 26);
/* oklch */ color: oklch(56.8% 0.169 140.1);
Tailwind
colors: {
  custom: {
    50: '#77af61',
    500: '#338d1a',
    950: '#000000',
  },
}
SCSS
$custom: #338d1a;
$custom-light: #77af61;
$custom-dark: #000000;
JSON
{
  "hex": "#338d1a",
  "rgb": {
    "r": 51,
    "g": 141,
    "b": 26
  },
  "hsl": {
    "h": 106.957,
    "s": 68.862,
    "l": 32.745
  },
  "oklch": {
    "l": 0.56754,
    "c": 0.16942,
    "h": 140.1
  },
  "luminance": 0.19828
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #338D1A

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

Preview Lab → · Contrast checker → · Palette generator →

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