#338D4F#338D4F

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

Color values

HEX#338D4F
RGBrgb(51, 141, 79)
HSLhsl(139, 47%, 38%)
HSVhsv(139, 64%, 55%)
CMYKcmyk(63.8%, 0%, 44%, 44.7%)
CIE-LABlab(52.19, -41.03, 25.37)
CIE-LCHlch(52.19, 48.24, 148.27°)
OKLaboklab(57.39% -0.1108 0.0626)
OKLCHoklch(57.39% 0.127 150.5)
XYZxyz(12.3005, 20.3168, 10.6689)
Luminance0.2032 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338D4F #8D3371
analogous
#448D33 #338D4F #338D7C
triadic
#338D4F #4F338D #8D4F33
tetradic
#338D4F #33448D #8D3371 #8D7C33
square
#338D4F #33448D #8D3371 #8D7C33
split-complementary
#338D4F #7C338D #8D3344
monochromatic
#12331D #236036 #338D4F #43BA68 #6FCB8C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##338D4F#FFFFFF#000000##000000
##338D4F1.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)
#8E814A
Deuteranopia (green-blind)
#827953
Tritanopia (blue-blind)
#148B7E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #338d4f;
/* rgb */ color: rgb(51, 141, 79);
/* oklch */ color: oklch(57.4% 0.127 150.5);
Tailwind
colors: {
  custom: {
    50: '#75af81',
    500: '#338d4f',
    950: '#000000',
  },
}
SCSS
$custom: #338d4f;
$custom-light: #75af81;
$custom-dark: #000000;
JSON
{
  "hex": "#338d4f",
  "rgb": {
    "r": 51,
    "g": 141,
    "b": 79
  },
  "hsl": {
    "h": 138.667,
    "s": 46.875,
    "l": 37.647
  },
  "oklch": {
    "l": 0.57389,
    "c": 0.1273,
    "h": 150.5
  },
  "luminance": 0.20318
}

Semantic roles & 50–950 ramp

primary
#338D4F
secondary
#B3699C
accent
#51ADD7
background
#F7FAF7
surface
#EDF5EE
border
#C8CFC9
text
#09100A
muted
#7B7F7C

Preview Lab

Preview with #338D4F

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

Preview Lab → · Contrast checker → · Palette generator →

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