#338D4C#338D4C

#338D4C is a mid, vivid green. Relative luminance 0.203; OKLCH L 57.3% C 0.130 H 149.5°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#338D4C
RGBrgb(51, 141, 76)
HSLhsl(137, 47%, 38%)
HSVhsv(137, 64%, 55%)
CMYKcmyk(63.8%, 0%, 46.1%, 44.7%)
CIE-LABlab(52.15, -41.56, 26.94)
CIE-LCHlch(52.15, 49.52, 147.05°)
OKLaboklab(57.33% -0.1122 0.0661)
OKLCHoklch(57.33% 0.13 149.5)
XYZxyz(12.1937, 20.2742, 10.1068)
Luminance0.2028 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338D4C #8D3374
analogous
#478D33 #338D4C #338D79
triadic
#338D4C #4C338D #8D4C33
tetradic
#338D4C #33478D #8D3374 #8D7933
square
#338D4C #33478D #8D3374 #8D7933
split-complementary
#338D4C #79338D #8D3347
monochromatic
#12331C #236034 #338D4C #43BA64 #6FCB89

Accessibility & contrast

On white

4.15
#338D4C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#338D4C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338D4C
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338D4C#FFFFFF#000000##000000
##338D4C1.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E8147
Deuteranopia (green-blind)
#827950
Tritanopia (blue-blind)
#168A7D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #338d4c;
/* rgb */ color: rgb(51, 141, 76);
/* oklch */ color: oklch(57.3% 0.130 149.5);
Tailwind
colors: {
  custom: {
    50: '#75af7f',
    500: '#338d4c',
    950: '#000000',
  },
}
SCSS
$custom: #338d4c;
$custom-light: #75af7f;
$custom-dark: #000000;
JSON
{
  "hex": "#338d4c",
  "rgb": {
    "r": 51,
    "g": 141,
    "b": 76
  },
  "hsl": {
    "h": 136.667,
    "s": 46.875,
    "l": 37.647
  },
  "oklch": {
    "l": 0.57334,
    "c": 0.13026,
    "h": 149.5
  },
  "luminance": 0.20275
}

Semantic roles & 50–950 ramp

primary
#338D4C
secondary
#B3699E
accent
#51B2D7
background
#F7FAF7
surface
#EDF5EE
border
#C8CFC9
text
#09100A
muted
#7B7F7C

Preview Lab

Preview with #338D4C

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

Preview Lab → · Contrast checker → · Palette generator →

#338D4C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva