#338951#338951

#338951 is a mid, moderate green. Relative luminance 0.192; OKLCH L 56.3% C 0.119 H 152.0°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#338951
RGBrgb(51, 137, 81)
HSLhsl(141, 46%, 37%)
HSVhsv(141, 63%, 54%)
CMYKcmyk(62.8%, 0%, 40.9%, 46.3%)
CIE-LABlab(50.91, -38.99, 22.59)
CIE-LCHlch(50.91, 45.06, 149.91°)
OKLaboklab(56.34% -0.1055 0.0562)
OKLCHoklch(56.34% 0.119 152)
XYZxyz(11.7952, 19.1880, 10.8651)
Luminance0.1919 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338951 #89336B
analogous
#408933 #338951 #33897C
triadic
#338951 #513389 #895133
tetradic
#338951 #334089 #89336B #897C33
square
#338951 #334089 #89336B #897C33
split-complementary
#338951 #7C3389 #893340
monochromatic
#12301C #225C37 #338951 #44B66B #6EC98D

Accessibility & contrast

On white

4.34
#338951 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#338951 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338951
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338951#FFFFFF#000000##000000
##3389511.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#897E4D
Deuteranopia (green-blind)
#7E7655
Tritanopia (blue-blind)
#15877B
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #338951;
/* rgb */ color: rgb(51, 137, 81);
/* oklch */ color: oklch(56.3% 0.119 152.0);
Tailwind
colors: {
  custom: {
    50: '#74ac82',
    500: '#338951',
    950: '#000000',
  },
}
SCSS
$custom: #338951;
$custom-light: #74ac82;
$custom-dark: #000000;
JSON
{
  "hex": "#338951",
  "rgb": {
    "r": 51,
    "g": 137,
    "b": 81
  },
  "hsl": {
    "h": 140.93,
    "s": 45.745,
    "l": 36.863
  },
  "oklch": {
    "l": 0.56342,
    "c": 0.11949,
    "h": 152
  },
  "luminance": 0.19189
}

Semantic roles & 50–950 ramp

primary
#338951
secondary
#B16797
accent
#52A8D5
background
#F7FAF8
surface
#EDF4EF
border
#C8CECA
text
#09100A
muted
#7B7F7C

Preview Lab

Preview with #338951

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

Preview Lab → · Contrast checker → · Palette generator →

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