#338A47#338A47

#338A47 is a mid, vivid green. Relative luminance 0.193; OKLCH L 56.4% C 0.131 H 148.2°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#338A47
RGBrgb(51, 138, 71)
HSLhsl(134, 46%, 37%)
HSVhsv(134, 63%, 54%)
CMYKcmyk(63%, 0%, 48.6%, 45.9%)
CIE-LABlab(51.08, -41.18, 28.27)
CIE-LCHlch(51.08, 49.95, 145.53°)
OKLaboklab(56.43% -0.1112 0.069)
OKLCHoklch(56.43% 0.131 148.2)
XYZxyz(11.5902, 19.3346, 9.0812)
Luminance0.1934 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338A47 #8A3376
analogous
#4B8A33 #338A47 #338A73
triadic
#338A47 #47338A #8A4733
tetradic
#338A47 #334B8A #8A3376 #8A7333
square
#338A47 #334B8A #8A3376 #8A7333
split-complementary
#338A47 #73338A #8A334B
monochromatic
#123119 #225D30 #338A47 #44B75E #6EC983

Accessibility & contrast

On white

4.31
#338A47 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#338A47 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338A47
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338A47#FFFFFF#000000##000000
##338A471.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7E42
Deuteranopia (green-blind)
#80774C
Tritanopia (blue-blind)
#1B877A
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #338a47;
/* rgb */ color: rgb(51, 138, 71);
/* oklch */ color: oklch(56.4% 0.131 148.2);
Tailwind
colors: {
  custom: {
    50: '#74ad7b',
    500: '#338a47',
    950: '#000000',
  },
}
SCSS
$custom: #338a47;
$custom-light: #74ad7b;
$custom-dark: #000000;
JSON
{
  "hex": "#338a47",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 71
  },
  "hsl": {
    "h": 133.793,
    "s": 46.032,
    "l": 37.059
  },
  "oklch": {
    "l": 0.56429,
    "c": 0.13088,
    "h": 148.2
  },
  "luminance": 0.19336
}

Semantic roles & 50–950 ramp

primary
#338A47
secondary
#B167A0
accent
#52B7D6
background
#F7FAF7
surface
#EDF4EE
border
#C8CEC9
text
#091009
muted
#7B7F7B

Preview Lab

Preview with #338A47

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

Preview Lab → · Contrast checker → · Palette generator →

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