#338A3F#338A3F

#338A3F is a mid, vivid green. Relative luminance 0.192; OKLCH L 56.3% C 0.139 H 145.9°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#338A3F
RGBrgb(51, 138, 63)
HSLhsl(128, 46%, 37%)
HSVhsv(128, 63%, 54%)
CMYKcmyk(63%, 0%, 54.3%, 45.9%)
CIE-LABlab(50.97, -42.42, 32.33)
CIE-LCHlch(50.97, 53.34, 142.69°)
OKLaboklab(56.3% -0.1147 0.0776)
OKLCHoklch(56.3% 0.139 145.9)
XYZxyz(11.3502, 19.2385, 7.8169)
Luminance0.1924 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338A3F #8A337E
analogous
#538A33 #338A3F #338A6B
triadic
#338A3F #3F338A #8A3F33
tetradic
#338A3F #33538A #8A337E #8A6B33
square
#338A3F #33538A #8A337E #8A6B33
split-complementary
#338A3F #6B338A #8A3353
monochromatic
#123116 #225D2B #338A3F #44B753 #6EC97B

Accessibility & contrast

On white

4.33
#338A3F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#338A3F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338A3F
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338A3F#FFFFFF#000000##000000
##338A3F1.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7E38
Deuteranopia (green-blind)
#817645
Tritanopia (blue-blind)
#1E8779
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #338a3f;
/* rgb */ color: rgb(51, 138, 63);
/* oklch */ color: oklch(56.3% 0.139 145.9);
Tailwind
colors: {
  custom: {
    50: '#75ad76',
    500: '#338a3f',
    950: '#000000',
  },
}
SCSS
$custom: #338a3f;
$custom-light: #75ad76;
$custom-dark: #000000;
JSON
{
  "hex": "#338a3f",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 63
  },
  "hsl": {
    "h": 128.276,
    "s": 46.032,
    "l": 37.059
  },
  "oklch": {
    "l": 0.56301,
    "c": 0.13854,
    "h": 145.9
  },
  "luminance": 0.1924
}

Semantic roles & 50–950 ramp

primary
#338A3F
secondary
#B167A7
accent
#52C4D6
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#091008
muted
#7B7F7B

Preview Lab

Preview with #338A3F

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

Preview Lab → · Contrast checker → · Palette generator →

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