#338D45#338D45

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

Color values

HEX#338D45
RGBrgb(51, 141, 69)
HSLhsl(132, 47%, 38%)
HSVhsv(132, 64%, 55%)
CMYKcmyk(63.8%, 0%, 51.1%, 44.7%)
CIE-LABlab(52.04, -42.71, 30.54)
CIE-LCHlch(52.04, 52.50, 144.44°)
OKLaboklab(57.22% -0.1154 0.074)
OKLCHoklch(57.22% 0.137 147.3)
XYZxyz(11.9635, 20.1821, 8.8941)
Luminance0.2018 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338D45 #8D337B
analogous
#4E8D33 #338D45 #338D72
triadic
#338D45 #45338D #8D4533
tetradic
#338D45 #334E8D #8D337B #8D7233
square
#338D45 #334E8D #8D337B #8D7233
split-complementary
#338D45 #72338D #8D334E
monochromatic
#123319 #23602F #338D45 #43BA5B #6FCB82

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##338D45#FFFFFF#000000##000000
##338D451.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)
#8F813F
Deuteranopia (green-blind)
#83794A
Tritanopia (blue-blind)
#1A8A7C
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #338d45;
/* rgb */ color: rgb(51, 141, 69);
/* oklch */ color: oklch(57.2% 0.137 147.3);
Tailwind
colors: {
  custom: {
    50: '#75af7a',
    500: '#338d45',
    950: '#000000',
  },
}
SCSS
$custom: #338d45;
$custom-light: #75af7a;
$custom-dark: #000000;
JSON
{
  "hex": "#338d45",
  "rgb": {
    "r": 51,
    "g": 141,
    "b": 69
  },
  "hsl": {
    "h": 132,
    "s": 46.875,
    "l": 37.647
  },
  "oklch": {
    "l": 0.57215,
    "c": 0.13705,
    "h": 147.3
  },
  "luminance": 0.20183
}

Semantic roles & 50–950 ramp

primary
#338D45
secondary
#B369A4
accent
#51BCD7
background
#F7FAF7
surface
#EDF5EE
border
#C8CFC9
text
#091009
muted
#7B7F7B

Preview Lab

Preview with #338D45

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

Preview Lab → · Contrast checker → · Palette generator →

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