#338E28#338E28

#338E28 is a mid, vivid green. Relative luminance 0.202; OKLCH L 57.1% C 0.163 H 141.6°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#338E28
RGBrgb(51, 142, 40)
HSLhsl(114, 56%, 36%)
HSVhsv(114, 72%, 56%)
CMYKcmyk(64.1%, 0%, 71.8%, 44.3%)
CIE-LABlab(52.06, -46.65, 44.31)
CIE-LCHlch(52.06, 64.34, 136.48°)
OKLaboklab(57.13% -0.1273 0.101)
OKLCHoklch(57.13% 0.163 141.6)
XYZxyz(11.4207, 20.2019, 5.3046)
Luminance0.2020 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338E28 #83288E
analogous
#668E28 #338E28 #288E50
triadic
#338E28 #28338E #8E2833
tetradic
#338E28 #28668E #83288E #8E5028
square
#338E28 #28668E #83288E #8E5028
split-complementary
#338E28 #50288E #8E2866
monochromatic
#112F0D #225E1B #338E28 #44BE35 #6BD25F

Accessibility & contrast

On white

4.17
#338E28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#338E28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338E28
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338E28#FFFFFF#000000##000000
##338E281.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#928118
Deuteranopia (green-blind)
#867932
Tritanopia (blue-blind)
#238A7A
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #338e28;
/* rgb */ color: rgb(51, 142, 40);
/* oklch */ color: oklch(57.1% 0.163 141.6);
Tailwind
colors: {
  custom: {
    50: '#77b068',
    500: '#338e28',
    950: '#000000',
  },
}
SCSS
$custom: #338e28;
$custom-light: #77b068;
$custom-dark: #000000;
JSON
{
  "hex": "#338e28",
  "rgb": {
    "r": 51,
    "g": 142,
    "b": 40
  },
  "hsl": {
    "h": 113.529,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.57133,
    "c": 0.16253,
    "h": 141.6
  },
  "luminance": 0.20203
}

Semantic roles & 50–950 ramp

primary
#338E28
secondary
#AD5BB7
accent
#48DFCF
background
#F7FAF6
surface
#EEF5EB
border
#C9CFC6
text
#0A1006
muted
#7C7F7A

Preview Lab

Preview with #338E28

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

Preview Lab → · Contrast checker → · Palette generator →

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