#338D46#338D46

#338D46 is a mid, vivid green. Relative luminance 0.202; OKLCH L 57.2% C 0.136 H 147.6°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#338D46
RGBrgb(51, 141, 70)
HSLhsl(133, 47%, 38%)
HSVhsv(133, 64%, 55%)
CMYKcmyk(63.8%, 0%, 50.4%, 44.7%)
CIE-LABlab(52.06, -42.55, 30.03)
CIE-LCHlch(52.06, 52.08, 144.79°)
OKLaboklab(57.23% -0.1149 0.0729)
OKLCHoklch(57.23% 0.136 147.6)
XYZxyz(11.9948, 20.1946, 9.0590)
Luminance0.2020 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338D46 #8D337A
analogous
#4D8D33 #338D46 #338D73
triadic
#338D46 #46338D #8D4633
tetradic
#338D46 #334D8D #8D337A #8D7333
square
#338D46 #334D8D #8D337A #8D7333
split-complementary
#338D46 #73338D #8D334D
monochromatic
#123319 #236030 #338D46 #43BA5C #6FCB83

Accessibility & contrast

On white

4.17
#338D46 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#338D46 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338D46
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338D46#FFFFFF#000000##000000
##338D461.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F8140
Deuteranopia (green-blind)
#83794B
Tritanopia (blue-blind)
#1A8A7C
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #338d46;
/* rgb */ color: rgb(51, 141, 70);
/* oklch */ color: oklch(57.2% 0.136 147.6);
Tailwind
colors: {
  custom: {
    50: '#75af7b',
    500: '#338d46',
    950: '#000000',
  },
}
SCSS
$custom: #338d46;
$custom-light: #75af7b;
$custom-dark: #000000;
JSON
{
  "hex": "#338d46",
  "rgb": {
    "r": 51,
    "g": 141,
    "b": 70
  },
  "hsl": {
    "h": 132.667,
    "s": 46.875,
    "l": 37.647
  },
  "oklch": {
    "l": 0.57231,
    "c": 0.1361,
    "h": 147.6
  },
  "luminance": 0.20196
}

Semantic roles & 50–950 ramp

primary
#338D46
secondary
#B369A3
accent
#51BAD7
background
#F7FAF7
surface
#EDF5EE
border
#C8CFC9
text
#091009
muted
#7B7F7B

Preview Lab

Preview with #338D46

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

Preview Lab → · Contrast checker → · Palette generator →

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