#338148#338148

#338148 is a mid, moderate green. Relative luminance 0.169; OKLCH L 54.0% C 0.117 H 149.6°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#338148
RGBrgb(51, 129, 72)
HSLhsl(136, 43%, 35%)
HSVhsv(136, 60%, 51%)
CMYKcmyk(60.5%, 0%, 44.2%, 49.4%)
CIE-LABlab(48.10, -37.25, 23.91)
CIE-LCHlch(48.10, 44.27, 147.30°)
OKLaboklab(53.98% -0.1008 0.059)
OKLCHoklch(53.98% 0.117 149.6)
XYZxyz(10.3845, 16.8712, 8.8389)
Luminance0.1687 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338148 #81336C
analogous
#458133 #338148 #33816F
triadic
#338148 #483381 #814833
tetradic
#338148 #334581 #81336C #816F33
square
#338148 #334581 #81336C #816F33
split-complementary
#338148 #6F3381 #813345
monochromatic
#102917 #225530 #338148 #44AD60 #6AC482

Accessibility & contrast

On white

4.80
#338148 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#338148 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #338148
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338148#FFFFFF#000000##FFFFFF
##3381481.004.804.374.80
#FFFFFF4.801.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827744
Deuteranopia (green-blind)
#786F4C
Tritanopia (blue-blind)
#1E7F73
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #338148;
/* rgb */ color: rgb(51, 129, 72);
/* oklch */ color: oklch(54.0% 0.117 149.6);
Tailwind
colors: {
  custom: {
    50: '#73a67c',
    500: '#338148',
    950: '#000000',
  },
}
SCSS
$custom: #338148;
$custom-light: #73a67c;
$custom-dark: #000000;
JSON
{
  "hex": "#338148",
  "rgb": {
    "r": 51,
    "g": 129,
    "b": 72
  },
  "hsl": {
    "h": 136.154,
    "s": 43.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.53984,
    "c": 0.11676,
    "h": 149.6
  },
  "luminance": 0.16872
}

Semantic roles & 50–950 ramp

primary
#338148
secondary
#AC6499
accent
#55B1D3
background
#F7FAF7
surface
#EDF4EE
border
#C8CEC9
text
#080F09
muted
#7B7F7B

Preview Lab

Preview with #338148

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

Preview Lab → · Contrast checker → · Palette generator →

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