#338F4D#338F4D

#338F4D is a mid, vivid green. Relative luminance 0.209; OKLCH L 57.9% C 0.132 H 149.6°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#338F4D
RGBrgb(51, 143, 77)
HSLhsl(137, 47%, 38%)
HSVhsv(137, 64%, 56%)
CMYKcmyk(64.3%, 0%, 46.2%, 43.9%)
CIE-LABlab(52.82, -42.20, 27.26)
CIE-LCHlch(52.82, 50.24, 147.13°)
OKLaboklab(57.9% -0.1139 0.0669)
OKLCHoklch(57.9% 0.132 149.6)
XYZxyz(12.5263, 20.8833, 10.3905)
Luminance0.2089 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338F4D #8F3375
analogous
#478F33 #338F4D #338F7B
triadic
#338F4D #4D338F #8F4D33
tetradic
#338F4D #33478F #8F3375 #8F7B33
square
#338F4D #33478F #8F3375 #8F7B33
split-complementary
#338F4D #7B338F #8F3347
monochromatic
#13351C #236235 #338F4D #43BC65 #70CC8A

Accessibility & contrast

On white

4.06
#338F4D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#338F4D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338F4D
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338F4D#FFFFFF#000000##000000
##338F4D1.004.065.185.18
#FFFFFF4.061.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#908348
Deuteranopia (green-blind)
#847B51
Tritanopia (blue-blind)
#148C7F
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #338f4d;
/* rgb */ color: rgb(51, 143, 77);
/* oklch */ color: oklch(57.9% 0.132 149.6);
Tailwind
colors: {
  custom: {
    50: '#75b180',
    500: '#338f4d',
    950: '#000000',
  },
}
SCSS
$custom: #338f4d;
$custom-light: #75b180;
$custom-dark: #000000;
JSON
{
  "hex": "#338f4d",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 77
  },
  "hsl": {
    "h": 136.957,
    "s": 47.423,
    "l": 38.039
  },
  "oklch": {
    "l": 0.57895,
    "c": 0.13212,
    "h": 149.6
  },
  "luminance": 0.20885
}

Semantic roles & 50–950 ramp

primary
#338F4D
secondary
#B46A9F
accent
#51B1D7
background
#F7FAF7
surface
#EDF5EE
border
#C8CFC9
text
#09110A
muted
#7B807C

Preview Lab

Preview with #338F4D

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

Preview Lab → · Contrast checker → · Palette generator →

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