#338147#338147

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

Color values

HEX#338147
RGBrgb(51, 129, 71)
HSLhsl(135, 43%, 35%)
HSVhsv(135, 60%, 51%)
CMYKcmyk(60.5%, 0%, 45%, 49.4%)
CIE-LABlab(48.08, -37.43, 24.45)
CIE-LCHlch(48.08, 44.71, 146.85°)
OKLaboklab(53.97% -0.1012 0.0602)
OKLCHoklch(53.97% 0.118 149.3)
XYZxyz(10.3521, 16.8583, 8.6684)
Luminance0.1686 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338147 #81336D
analogous
#468133 #338147 #33816E
triadic
#338147 #473381 #814733
tetradic
#338147 #334681 #81336D #816E33
square
#338147 #334681 #81336D #816E33
split-complementary
#338147 #6E3381 #813346
monochromatic
#102917 #22552F #338147 #44AD5F #6AC481

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##338147#FFFFFF#000000##FFFFFF
##3381471.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)
#827643
Deuteranopia (green-blind)
#786F4B
Tritanopia (blue-blind)
#1F7F73
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #338147;
/* rgb */ color: rgb(51, 129, 71);
/* oklch */ color: oklch(54.0% 0.118 149.3);
Tailwind
colors: {
  custom: {
    50: '#73a67b',
    500: '#338147',
    950: '#000000',
  },
}
SCSS
$custom: #338147;
$custom-light: #73a67b;
$custom-dark: #000000;
JSON
{
  "hex": "#338147",
  "rgb": {
    "r": 51,
    "g": 129,
    "b": 71
  },
  "hsl": {
    "h": 135.385,
    "s": 43.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.53965,
    "c": 0.11778,
    "h": 149.3
  },
  "luminance": 0.16859
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #338147

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

Preview Lab → · Contrast checker → · Palette generator →

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