#338F40#338F40

#338F40 is a mid, vivid green. Relative luminance 0.207; OKLCH L 57.7% C 0.145 H 145.9°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#338F40
RGBrgb(51, 143, 64)
HSLhsl(128, 47%, 38%)
HSVhsv(128, 64%, 56%)
CMYKcmyk(64.3%, 0%, 55.2%, 43.9%)
CIE-LABlab(52.64, -44.25, 33.85)
CIE-LCHlch(52.64, 55.71, 142.58°)
OKLaboklab(57.69% -0.1196 0.0811)
OKLCHoklch(57.69% 0.145 145.9)
XYZxyz(12.1123, 20.7177, 8.2101)
Luminance0.2072 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338F40 #8F3382
analogous
#548F33 #338F40 #338F6E
triadic
#338F40 #40338F #8F4033
tetradic
#338F40 #33548F #8F3382 #8F6E33
square
#338F40 #33548F #8F3382 #8F6E33
split-complementary
#338F40 #6E338F #8F3354
monochromatic
#133518 #23622C #338F40 #43BC54 #70CC7D

Accessibility & contrast

On white

4.08
#338F40 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#338F40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338F40
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338F40#FFFFFF#000000##000000
##338F401.004.085.145.14
#FFFFFF4.081.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#918239
Deuteranopia (green-blind)
#867B46
Tritanopia (blue-blind)
#1C8C7D
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #338f40;
/* rgb */ color: rgb(51, 143, 64);
/* oklch */ color: oklch(57.7% 0.145 145.9);
Tailwind
colors: {
  custom: {
    50: '#76b177',
    500: '#338f40',
    950: '#000000',
  },
}
SCSS
$custom: #338f40;
$custom-light: #76b177;
$custom-dark: #000000;
JSON
{
  "hex": "#338f40",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 64
  },
  "hsl": {
    "h": 128.478,
    "s": 47.423,
    "l": 38.039
  },
  "oklch": {
    "l": 0.57686,
    "c": 0.14451,
    "h": 145.9
  },
  "luminance": 0.20719
}

Semantic roles & 50–950 ramp

primary
#338F40
secondary
#B46AAA
accent
#51C4D7
background
#F7FBF7
surface
#EEF6ED
border
#C9D0C8
text
#091109
muted
#7B807B

Preview Lab

Preview with #338F40

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

Preview Lab → · Contrast checker → · Palette generator →

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