#338D40#338D40

#338D40 is a mid, vivid green. Relative luminance 0.201; OKLCH L 57.1% C 0.142 H 146.0°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#338D40
RGBrgb(51, 141, 64)
HSLhsl(129, 47%, 38%)
HSVhsv(129, 64%, 55%)
CMYKcmyk(63.8%, 0%, 54.6%, 44.7%)
CIE-LABlab(51.98, -43.46, 33.05)
CIE-LCHlch(51.98, 54.60, 142.75°)
OKLaboklab(57.14% -0.1175 0.0793)
OKLCHoklch(57.14% 0.142 146)
XYZxyz(11.8148, 20.1226, 8.1109)
Luminance0.2012 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338D40 #8D3380
analogous
#538D33 #338D40 #338D6D
triadic
#338D40 #40338D #8D4033
tetradic
#338D40 #33538D #8D3380 #8D6D33
square
#338D40 #33538D #8D3380 #8D6D33
split-complementary
#338D40 #6D338D #8D3353
monochromatic
#123317 #23602C #338D40 #43BA54 #6FCB7D

Accessibility & contrast

On white

4.18
#338D40 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#338D40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338D40
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338D40#FFFFFF#000000##000000
##338D401.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F8139
Deuteranopia (green-blind)
#847946
Tritanopia (blue-blind)
#1D8A7C
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #338d40;
/* rgb */ color: rgb(51, 141, 64);
/* oklch */ color: oklch(57.1% 0.142 146.0);
Tailwind
colors: {
  custom: {
    50: '#75af77',
    500: '#338d40',
    950: '#000000',
  },
}
SCSS
$custom: #338d40;
$custom-light: #75af77;
$custom-dark: #000000;
JSON
{
  "hex": "#338d40",
  "rgb": {
    "r": 51,
    "g": 141,
    "b": 64
  },
  "hsl": {
    "h": 128.667,
    "s": 46.875,
    "l": 37.647
  },
  "oklch": {
    "l": 0.57138,
    "c": 0.14176,
    "h": 146
  },
  "luminance": 0.20124
}

Semantic roles & 50–950 ramp

primary
#338D40
secondary
#B369A8
accent
#51C3D7
background
#F7FAF7
surface
#EDF5ED
border
#C8CFC8
text
#091009
muted
#7B7F7B

Preview Lab

Preview with #338D40

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

Preview Lab → · Contrast checker → · Palette generator →

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