#338E4F#338E4F

#338E4F is a mid, vivid green. Relative luminance 0.206; OKLCH L 57.7% C 0.129 H 150.4°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#338E4F
RGBrgb(51, 142, 79)
HSLhsl(138, 47%, 38%)
HSVhsv(138, 64%, 56%)
CMYKcmyk(64.1%, 0%, 44.4%, 44.3%)
CIE-LABlab(52.52, -41.44, 25.80)
CIE-LCHlch(52.52, 48.81, 148.10°)
OKLaboklab(57.66% -0.1119 0.0636)
OKLCHoklch(57.66% 0.129 150.4)
XYZxyz(12.4486, 20.6131, 10.7183)
Luminance0.2061 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338E4F #8E3372
analogous
#448E33 #338E4F #338E7D
triadic
#338E4F #4F338E #8E4F33
tetradic
#338E4F #33448E #8E3372 #8E7D33
square
#338E4F #33448E #8E3372 #8E7D33
split-complementary
#338E4F #7D338E #8E3344
monochromatic
#13341D #236136 #338E4F #43BB68 #70CC8C

Accessibility & contrast

On white

4.10
#338E4F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#338E4F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338E4F
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338E4F#FFFFFF#000000##000000
##338E4F1.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F824A
Deuteranopia (green-blind)
#837A53
Tritanopia (blue-blind)
#148C7F
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #338e4f;
/* rgb */ color: rgb(51, 142, 79);
/* oklch */ color: oklch(57.7% 0.129 150.4);
Tailwind
colors: {
  custom: {
    50: '#75b081',
    500: '#338e4f',
    950: '#000000',
  },
}
SCSS
$custom: #338e4f;
$custom-light: #75b081;
$custom-dark: #000000;
JSON
{
  "hex": "#338e4f",
  "rgb": {
    "r": 51,
    "g": 142,
    "b": 79
  },
  "hsl": {
    "h": 138.462,
    "s": 47.15,
    "l": 37.843
  },
  "oklch": {
    "l": 0.5766,
    "c": 0.12873,
    "h": 150.4
  },
  "luminance": 0.20614
}

Semantic roles & 50–950 ramp

primary
#338E4F
secondary
#B4699D
accent
#51AED7
background
#F7FAF7
surface
#EDF5EE
border
#C8CFC9
text
#09100A
muted
#7B7F7C

Preview Lab

Preview with #338E4F

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

Preview Lab → · Contrast checker → · Palette generator →

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