#338E4A#338E4A

#338E4A is a mid, vivid green. Relative luminance 0.205; OKLCH L 57.6% C 0.134 H 148.7°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#338E4A
RGBrgb(51, 142, 74)
HSLhsl(135, 47%, 38%)
HSVhsv(135, 64%, 56%)
CMYKcmyk(64.1%, 0%, 47.9%, 44.3%)
CIE-LABlab(52.45, -42.30, 28.39)
CIE-LCHlch(52.45, 50.95, 146.13°)
OKLaboklab(57.57% -0.1142 0.0694)
OKLCHoklch(57.57% 0.134 148.7)
XYZxyz(12.2734, 20.5430, 9.7956)
Luminance0.2054 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338E4A #8E3377
analogous
#498E33 #338E4A #338E77
triadic
#338E4A #4A338E #8E4A33
tetradic
#338E4A #33498E #8E3377 #8E7733
square
#338E4A #33498E #8E3377 #8E7733
split-complementary
#338E4A #77338E #8E3349
monochromatic
#13341B #236133 #338E4A #43BB61 #70CC87

Accessibility & contrast

On white

4.11
#338E4A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#338E4A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338E4A
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338E4A#FFFFFF#000000##000000
##338E4A1.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F8245
Deuteranopia (green-blind)
#847A4F
Tritanopia (blue-blind)
#178B7E
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #338e4a;
/* rgb */ color: rgb(51, 142, 74);
/* oklch */ color: oklch(57.6% 0.134 148.7);
Tailwind
colors: {
  custom: {
    50: '#75b07d',
    500: '#338e4a',
    950: '#000000',
  },
}
SCSS
$custom: #338e4a;
$custom-light: #75b07d;
$custom-dark: #000000;
JSON
{
  "hex": "#338e4a",
  "rgb": {
    "r": 51,
    "g": 142,
    "b": 74
  },
  "hsl": {
    "h": 135.165,
    "s": 47.15,
    "l": 37.843
  },
  "oklch": {
    "l": 0.57571,
    "c": 0.13364,
    "h": 148.7
  },
  "luminance": 0.20544
}

Semantic roles & 50–950 ramp

primary
#338E4A
secondary
#B469A1
accent
#51B5D7
background
#F7FAF7
surface
#EDF5EE
border
#C8CFC9
text
#09100A
muted
#7B7F7C

Preview Lab

Preview with #338E4A

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

Preview Lab → · Contrast checker → · Palette generator →

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