#338F45#338F45

#338F45 is a mid, vivid green. Relative luminance 0.208; OKLCH L 57.8% C 0.140 H 147.2°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#338F45
RGBrgb(51, 143, 69)
HSLhsl(132, 47%, 38%)
HSVhsv(132, 64%, 56%)
CMYKcmyk(64.3%, 0%, 51.7%, 43.9%)
CIE-LABlab(52.70, -43.50, 31.36)
CIE-LCHlch(52.70, 53.63, 144.22°)
OKLaboklab(57.76% -0.1175 0.0758)
OKLCHoklch(57.76% 0.14 147.2)
XYZxyz(12.2610, 20.7772, 8.9933)
Luminance0.2078 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338F45 #8F337D
analogous
#4F8F33 #338F45 #338F73
triadic
#338F45 #45338F #8F4533
tetradic
#338F45 #334F8F #8F337D #8F7333
square
#338F45 #334F8F #8F337D #8F7333
split-complementary
#338F45 #73338F #8F334F
monochromatic
#133519 #23622F #338F45 #43BC5B #70CC82

Accessibility & contrast

On white

4.07
#338F45 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#338F45 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338F45
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338F45#FFFFFF#000000##000000
##338F451.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#91833F
Deuteranopia (green-blind)
#857B4A
Tritanopia (blue-blind)
#198C7E
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #338f45;
/* rgb */ color: rgb(51, 143, 69);
/* oklch */ color: oklch(57.8% 0.140 147.2);
Tailwind
colors: {
  custom: {
    50: '#75b17a',
    500: '#338f45',
    950: '#000000',
  },
}
SCSS
$custom: #338f45;
$custom-light: #75b17a;
$custom-dark: #000000;
JSON
{
  "hex": "#338f45",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 69
  },
  "hsl": {
    "h": 131.739,
    "s": 47.423,
    "l": 38.039
  },
  "oklch": {
    "l": 0.57761,
    "c": 0.13985,
    "h": 147.2
  },
  "luminance": 0.20778
}

Semantic roles & 50–950 ramp

primary
#338F45
secondary
#B46AA6
accent
#51BDD7
background
#F7FBF7
surface
#EEF6EE
border
#C9D0C9
text
#091109
muted
#7B807B

Preview Lab

Preview with #338F45

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

Preview Lab → · Contrast checker → · Palette generator →

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