#338752#338752

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

Color values

HEX#338752
RGBrgb(51, 135, 82)
HSLhsl(142, 45%, 36%)
HSVhsv(142, 62%, 53%)
CMYKcmyk(62.2%, 0%, 39.3%, 47.1%)
CIE-LABlab(50.26, -37.95, 21.18)
CIE-LCHlch(50.26, 43.46, 150.83°)
OKLaboklab(55.82% -0.1027 0.0529)
OKLCHoklch(55.82% 0.116 152.8)
XYZxyz(11.5513, 18.6398, 10.9701)
Luminance0.1864 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338752 #873368
analogous
#3E8733 #338752 #33877C
triadic
#338752 #523387 #875233
tetradic
#338752 #333E87 #873368 #877C33
square
#338752 #333E87 #873368 #877C33
split-complementary
#338752 #7C3387 #87333E
monochromatic
#112E1C #225B37 #338752 #44B36D #6DC88E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##338752#FFFFFF#000000##000000
##3387521.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)
#877C4E
Deuteranopia (green-blind)
#7C7455
Tritanopia (blue-blind)
#16857A
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #338752;
/* rgb */ color: rgb(51, 135, 82);
/* oklch */ color: oklch(55.8% 0.116 152.8);
Tailwind
colors: {
  custom: {
    50: '#74ab83',
    500: '#338752',
    950: '#000000',
  },
}
SCSS
$custom: #338752;
$custom-light: #74ab83;
$custom-dark: #000000;
JSON
{
  "hex": "#338752",
  "rgb": {
    "r": 51,
    "g": 135,
    "b": 82
  },
  "hsl": {
    "h": 142.143,
    "s": 45.161,
    "l": 36.471
  },
  "oklch": {
    "l": 0.55819,
    "c": 0.11555,
    "h": 152.8
  },
  "luminance": 0.18641
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #338752

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

Preview Lab → · Contrast checker → · Palette generator →

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