#338B1A#338B1A

#338B1A is a mid, vivid green. Relative luminance 0.192; OKLCH L 56.2% C 0.167 H 140.0°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#338B1A
RGBrgb(51, 139, 26)
HSLhsl(107, 68%, 32%)
HSVhsv(107, 81%, 55%)
CMYKcmyk(63.3%, 0%, 81.3%, 45.5%)
CIE-LABlab(50.97, -46.61, 48.30)
CIE-LCHlch(50.97, 67.12, 133.98°)
OKLaboklab(56.2% -0.128 0.1074)
OKLCHoklch(56.2% 0.167 140)
XYZxyz(10.7838, 19.2426, 4.1230)
Luminance0.1924 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338B1A #721A8B
analogous
#6B8B1A #338B1A #1A8B3A
triadic
#338B1A #1A338B #8B1A33
tetradic
#338B1A #1A6B8B #721A8B #8B3A1A
square
#338B1A #1A6B8B #721A8B #8B3A1A
split-complementary
#338B1A #3A1A8B #8B1A6B
monochromatic
#0D2407 #205710 #338B1A #46BF24 #65DC43

Accessibility & contrast

On white

4.33
#338B1A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#338B1A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338B1A
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338B1A#FFFFFF#000000##000000
##338B1A1.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E00
Deuteranopia (green-blind)
#847727
Tritanopia (blue-blind)
#278676
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #338b1a;
/* rgb */ color: rgb(51, 139, 26);
/* oklch */ color: oklch(56.2% 0.167 140.0);
Tailwind
colors: {
  custom: {
    50: '#77ae61',
    500: '#338b1a',
    950: '#000000',
  },
}
SCSS
$custom: #338b1a;
$custom-light: #77ae61;
$custom-dark: #000000;
JSON
{
  "hex": "#338b1a",
  "rgb": {
    "r": 51,
    "g": 139,
    "b": 26
  },
  "hsl": {
    "h": 106.726,
    "s": 68.485,
    "l": 32.353
  },
  "oklch": {
    "l": 0.56199,
    "c": 0.16707,
    "h": 140
  },
  "luminance": 0.19244
}

Semantic roles & 50–950 ramp

primary
#338B1A
secondary
#A244BD
accent
#3CEBC5
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A1005
muted
#7C7F7A

Preview Lab

Preview with #338B1A

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

Preview Lab → · Contrast checker → · Palette generator →

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