#338A42#338A42

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

Color values

HEX#338A42
RGBrgb(51, 138, 66)
HSLhsl(130, 46%, 37%)
HSVhsv(130, 63%, 54%)
CMYKcmyk(63%, 0%, 52.2%, 45.9%)
CIE-LABlab(51.01, -41.97, 30.82)
CIE-LCHlch(51.01, 52.08, 143.71°)
OKLaboklab(56.35% -0.1135 0.0745)
OKLCHoklch(56.35% 0.136 146.7)
XYZxyz(11.4363, 19.2730, 8.2706)
Luminance0.1927 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338A42 #8A337B
analogous
#508A33 #338A42 #338A6E
triadic
#338A42 #42338A #8A4233
tetradic
#338A42 #33508A #8A337B #8A6E33
square
#338A42 #33508A #8A337B #8A6E33
split-complementary
#338A42 #6E338A #8A3350
monochromatic
#123117 #225D2D #338A42 #44B757 #6EC97E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##338A42#FFFFFF#000000##000000
##338A421.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)
#8C7E3C
Deuteranopia (green-blind)
#817647
Tritanopia (blue-blind)
#1D8779
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #338a42;
/* rgb */ color: rgb(51, 138, 66);
/* oklch */ color: oklch(56.3% 0.136 146.7);
Tailwind
colors: {
  custom: {
    50: '#75ad78',
    500: '#338a42',
    950: '#000000',
  },
}
SCSS
$custom: #338a42;
$custom-light: #75ad78;
$custom-dark: #000000;
JSON
{
  "hex": "#338a42",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 66
  },
  "hsl": {
    "h": 130.345,
    "s": 46.032,
    "l": 37.059
  },
  "oklch": {
    "l": 0.56347,
    "c": 0.13571,
    "h": 146.7
  },
  "luminance": 0.19274
}

Semantic roles & 50–950 ramp

primary
#338A42
secondary
#B167A5
accent
#52BFD6
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#091009
muted
#7B7F7B

Preview Lab

Preview with #338A42

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

Preview Lab → · Contrast checker → · Palette generator →

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