#338751#338751

#338751 is a mid, moderate green. Relative luminance 0.186; OKLCH L 55.8% C 0.117 H 152.3°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#338751
RGBrgb(51, 135, 81)
HSLhsl(141, 45%, 36%)
HSVhsv(141, 62%, 53%)
CMYKcmyk(62.2%, 0%, 40%, 47.1%)
CIE-LABlab(50.25, -38.14, 21.72)
CIE-LCHlch(50.25, 43.89, 150.34°)
OKLaboklab(55.8% -0.1032 0.0541)
OKLCHoklch(55.8% 0.117 152.3)
XYZxyz(11.5135, 18.6247, 10.7712)
Luminance0.1863 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338751 #873369
analogous
#3F8733 #338751 #33877B
triadic
#338751 #513387 #875133
tetradic
#338751 #333F87 #873369 #877B33
square
#338751 #333F87 #873369 #877B33
split-complementary
#338751 #7B3387 #87333F
monochromatic
#112E1C #225B36 #338751 #44B36C #6DC88D

Accessibility & contrast

On white

4.44
#338751 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#338751 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338751
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338751#FFFFFF#000000##000000
##3387511.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#877C4D
Deuteranopia (green-blind)
#7C7454
Tritanopia (blue-blind)
#168579
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #338751;
/* rgb */ color: rgb(51, 135, 81);
/* oklch */ color: oklch(55.8% 0.117 152.3);
Tailwind
colors: {
  custom: {
    50: '#74ab82',
    500: '#338751',
    950: '#000000',
  },
}
SCSS
$custom: #338751;
$custom-light: #74ab82;
$custom-dark: #000000;
JSON
{
  "hex": "#338751",
  "rgb": {
    "r": 51,
    "g": 135,
    "b": 81
  },
  "hsl": {
    "h": 141.429,
    "s": 45.161,
    "l": 36.471
  },
  "oklch": {
    "l": 0.55799,
    "c": 0.11656,
    "h": 152.3
  },
  "luminance": 0.18626
}

Semantic roles & 50–950 ramp

primary
#338751
secondary
#B06695
accent
#53A6D5
background
#F7FAF8
surface
#EDF4EF
border
#C8CECA
text
#09100A
muted
#7B7F7C

Preview Lab

Preview with #338751

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

Preview Lab → · Contrast checker → · Palette generator →

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