#338B41#338B41

#338B41 is a mid, vivid green. Relative luminance 0.196; OKLCH L 56.6% C 0.138 H 146.4°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#338B41
RGBrgb(51, 139, 65)
HSLhsl(130, 46%, 37%)
HSVhsv(130, 63%, 55%)
CMYKcmyk(63.3%, 0%, 53.2%, 45.5%)
CIE-LABlab(51.32, -42.52, 31.74)
CIE-LCHlch(51.32, 53.06, 143.26°)
OKLaboklab(56.61% -0.115 0.0764)
OKLCHoklch(56.61% 0.138 146.4)
XYZxyz(11.5512, 19.5496, 8.1647)
Luminance0.1955 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338B41 #8B337D
analogous
#518B33 #338B41 #338B6D
triadic
#338B41 #41338B #8B4133
tetradic
#338B41 #33518B #8B337D #8B6D33
square
#338B41 #33518B #8B337D #8B6D33
split-complementary
#338B41 #6D338B #8B3351
monochromatic
#123117 #235E2C #338B41 #43B856 #6ECA7D

Accessibility & contrast

On white

4.28
#338B41 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#338B41 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338B41
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338B41#FFFFFF#000000##000000
##338B411.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7F3B
Deuteranopia (green-blind)
#827746
Tritanopia (blue-blind)
#1D887A
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #338b41;
/* rgb */ color: rgb(51, 139, 65);
/* oklch */ color: oklch(56.6% 0.138 146.4);
Tailwind
colors: {
  custom: {
    50: '#75ae77',
    500: '#338b41',
    950: '#000000',
  },
}
SCSS
$custom: #338b41;
$custom-light: #75ae77;
$custom-dark: #000000;
JSON
{
  "hex": "#338b41",
  "rgb": {
    "r": 51,
    "g": 139,
    "b": 65
  },
  "hsl": {
    "h": 129.545,
    "s": 46.316,
    "l": 37.255
  },
  "oklch": {
    "l": 0.56605,
    "c": 0.13806,
    "h": 146.4
  },
  "luminance": 0.19551
}

Semantic roles & 50–950 ramp

primary
#338B41
secondary
#B268A6
accent
#52C1D6
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#091009
muted
#7B7F7B

Preview Lab

Preview with #338B41

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

Preview Lab → · Contrast checker → · Palette generator →

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