#338945#338945

#338945 is a mid, vivid green. Relative luminance 0.190; OKLCH L 56.1% C 0.131 H 147.7°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#338945
RGBrgb(51, 137, 69)
HSLhsl(133, 46%, 37%)
HSVhsv(133, 63%, 54%)
CMYKcmyk(62.8%, 0%, 49.6%, 46.3%)
CIE-LABlab(50.71, -41.10, 28.88)
CIE-LCHlch(50.71, 50.23, 144.90°)
OKLaboklab(56.12% -0.111 0.0703)
OKLCHoklch(56.12% 0.131 147.7)
XYZxyz(11.3843, 19.0237, 8.7011)
Luminance0.1903 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338945 #893377
analogous
#4C8933 #338945 #338970
triadic
#338945 #453389 #894533
tetradic
#338945 #334C89 #893377 #897033
square
#338945 #334C89 #893377 #897033
split-complementary
#338945 #703389 #89334C
monochromatic
#123018 #225C2F #338945 #44B65B #6EC981

Accessibility & contrast

On white

4.37
#338945 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#338945 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338945
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338945#FFFFFF#000000##000000
##3389451.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7D3F
Deuteranopia (green-blind)
#7F764A
Tritanopia (blue-blind)
#1C8679
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #338945;
/* rgb */ color: rgb(51, 137, 69);
/* oklch */ color: oklch(56.1% 0.131 147.7);
Tailwind
colors: {
  custom: {
    50: '#74ac7a',
    500: '#338945',
    950: '#000000',
  },
}
SCSS
$custom: #338945;
$custom-light: #74ac7a;
$custom-dark: #000000;
JSON
{
  "hex": "#338945",
  "rgb": {
    "r": 51,
    "g": 137,
    "b": 69
  },
  "hsl": {
    "h": 132.558,
    "s": 45.745,
    "l": 36.863
  },
  "oklch": {
    "l": 0.56122,
    "c": 0.1314,
    "h": 147.7
  },
  "luminance": 0.19025
}

Semantic roles & 50–950 ramp

primary
#338945
secondary
#B167A1
accent
#52BAD5
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#091009
muted
#7B7F7B

Preview Lab

Preview with #338945

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

Preview Lab → · Contrast checker → · Palette generator →

#338945 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva