#338D4D#338D4D

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

Color values

HEX#338D4D
RGBrgb(51, 141, 77)
HSLhsl(137, 47%, 38%)
HSVhsv(137, 64%, 55%)
CMYKcmyk(63.8%, 0%, 45.4%, 44.7%)
CIE-LABlab(52.16, -41.38, 26.42)
CIE-LCHlch(52.16, 49.10, 147.45°)
OKLaboklab(57.35% -0.1118 0.065)
OKLCHoklch(57.35% 0.129 149.8)
XYZxyz(12.2288, 20.2882, 10.2913)
Luminance0.2029 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338D4D #8D3373
analogous
#468D33 #338D4D #338D7A
triadic
#338D4D #4D338D #8D4D33
tetradic
#338D4D #33468D #8D3373 #8D7A33
square
#338D4D #33468D #8D3373 #8D7A33
split-complementary
#338D4D #7A338D #8D3346
monochromatic
#12331C #236034 #338D4D #43BA66 #6FCB8A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##338D4D#FFFFFF#000000##000000
##338D4D1.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)
#8E8148
Deuteranopia (green-blind)
#827951
Tritanopia (blue-blind)
#168B7E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #338d4d;
/* rgb */ color: rgb(51, 141, 77);
/* oklch */ color: oklch(57.4% 0.129 149.8);
Tailwind
colors: {
  custom: {
    50: '#75af80',
    500: '#338d4d',
    950: '#000000',
  },
}
SCSS
$custom: #338d4d;
$custom-light: #75af80;
$custom-dark: #000000;
JSON
{
  "hex": "#338d4d",
  "rgb": {
    "r": 51,
    "g": 141,
    "b": 77
  },
  "hsl": {
    "h": 137.333,
    "s": 46.875,
    "l": 37.647
  },
  "oklch": {
    "l": 0.57352,
    "c": 0.12927,
    "h": 149.8
  },
  "luminance": 0.20289
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #338D4D

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

Preview Lab → · Contrast checker → · Palette generator →

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