#338A40#338A40

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

Color values

HEX#338A40
RGBrgb(51, 138, 64)
HSLhsl(129, 46%, 37%)
HSVhsv(129, 63%, 54%)
CMYKcmyk(63%, 0%, 53.6%, 45.9%)
CIE-LABlab(50.98, -42.27, 31.83)
CIE-LCHlch(50.98, 52.92, 143.02°)
OKLaboklab(56.32% -0.1143 0.0766)
OKLCHoklch(56.32% 0.138 146.2)
XYZxyz(11.3784, 19.2498, 7.9655)
Luminance0.1925 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338A40 #8A337D
analogous
#518A33 #338A40 #338A6C
triadic
#338A40 #40338A #8A4033
tetradic
#338A40 #33518A #8A337D #8A6C33
square
#338A40 #33518A #8A337D #8A6C33
split-complementary
#338A40 #6C338A #8A3351
monochromatic
#123117 #225D2B #338A40 #44B755 #6EC97C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##338A40#FFFFFF#000000##000000
##338A401.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)
#8C7E39
Deuteranopia (green-blind)
#817645
Tritanopia (blue-blind)
#1E8779
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #338a40;
/* rgb */ color: rgb(51, 138, 64);
/* oklch */ color: oklch(56.3% 0.138 146.2);
Tailwind
colors: {
  custom: {
    50: '#75ad76',
    500: '#338a40',
    950: '#000000',
  },
}
SCSS
$custom: #338a40;
$custom-light: #75ad76;
$custom-dark: #000000;
JSON
{
  "hex": "#338a40",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 64
  },
  "hsl": {
    "h": 128.966,
    "s": 46.032,
    "l": 37.059
  },
  "oklch": {
    "l": 0.56316,
    "c": 0.13761,
    "h": 146.2
  },
  "luminance": 0.19251
}

Semantic roles & 50–950 ramp

primary
#338A40
secondary
#B167A6
accent
#52C2D6
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#091009
muted
#7B7F7B

Preview Lab

Preview with #338A40

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

Preview Lab → · Contrast checker → · Palette generator →

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