#338E38#338E38

#338E38 is a mid, vivid green. Relative luminance 0.203; OKLCH L 57.3% C 0.150 H 144.2°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#338E38
RGBrgb(51, 142, 56)
HSLhsl(123, 47%, 38%)
HSVhsv(123, 64%, 56%)
CMYKcmyk(64.1%, 0%, 60.6%, 44.3%)
CIE-LABlab(52.21, -44.93, 37.31)
CIE-LCHlch(52.21, 58.41, 140.29°)
OKLaboklab(57.3% -0.1218 0.088)
OKLCHoklch(57.3% 0.15 144.2)
XYZxyz(11.7513, 20.3342, 7.0462)
Luminance0.2034 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338E38 #8E3389
analogous
#5B8E33 #338E38 #338E66
triadic
#338E38 #38338E #8E3833
tetradic
#338E38 #335B8E #8E3389 #8E6633
square
#338E38 #335B8E #8E3389 #8E6633
split-complementary
#338E38 #66338E #8E335B
monochromatic
#133414 #236126 #338E38 #43BB4A #70CC75

Accessibility & contrast

On white

4.14
#338E38 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#338E38 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338E38
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338E38#FFFFFF#000000##000000
##338E381.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#91812F
Deuteranopia (green-blind)
#857A3F
Tritanopia (blue-blind)
#1F8A7B
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #338e38;
/* rgb */ color: rgb(51, 142, 56);
/* oklch */ color: oklch(57.3% 0.150 144.2);
Tailwind
colors: {
  custom: {
    50: '#76b072',
    500: '#338e38',
    950: '#000000',
  },
}
SCSS
$custom: #338e38;
$custom-light: #76b072;
$custom-dark: #000000;
JSON
{
  "hex": "#338e38",
  "rgb": {
    "r": 51,
    "g": 142,
    "b": 56
  },
  "hsl": {
    "h": 123.297,
    "s": 47.15,
    "l": 37.843
  },
  "oklch": {
    "l": 0.57303,
    "c": 0.15025,
    "h": 144.2
  },
  "luminance": 0.20335
}

Semantic roles & 50–950 ramp

primary
#338E38
secondary
#B469AF
accent
#51CFD7
background
#F7FAF7
surface
#EEF5ED
border
#C9CFC8
text
#091008
muted
#7B7F7B

Preview Lab

Preview with #338E38

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

Preview Lab → · Contrast checker → · Palette generator →

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