#338C28#338C28

#338C28 is a mid, vivid green. Relative luminance 0.196; OKLCH L 56.6% C 0.160 H 141.5°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#338C28
RGBrgb(51, 140, 40)
HSLhsl(113, 56%, 35%)
HSVhsv(113, 71%, 55%)
CMYKcmyk(63.6%, 0%, 71.4%, 45.1%)
CIE-LABlab(51.40, -45.91, 43.61)
CIE-LCHlch(51.40, 63.32, 136.47°)
OKLaboklab(56.58% -0.1253 0.0996)
OKLCHoklch(56.58% 0.16 141.5)
XYZxyz(11.1258, 19.6121, 5.2063)
Luminance0.1961 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338C28 #81288C
analogous
#658C28 #338C28 #288C4F
triadic
#338C28 #28338C #8C2833
tetradic
#338C28 #28658C #81288C #8C4F28
square
#338C28 #28658C #81288C #8C4F28
split-complementary
#338C28 #4F288C #8C2865
monochromatic
#102D0D #225C1A #338C28 #44BC36 #6AD15E

Accessibility & contrast

On white

4.27
#338C28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#338C28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338C28
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338C28#FFFFFF#000000##000000
##338C281.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7F19
Deuteranopia (green-blind)
#857832
Tritanopia (blue-blind)
#248878
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #338c28;
/* rgb */ color: rgb(51, 140, 40);
/* oklch */ color: oklch(56.6% 0.160 141.5);
Tailwind
colors: {
  custom: {
    50: '#76ae68',
    500: '#338c28',
    950: '#000000',
  },
}
SCSS
$custom: #338c28;
$custom-light: #76ae68;
$custom-dark: #000000;
JSON
{
  "hex": "#338c28",
  "rgb": {
    "r": 51,
    "g": 140,
    "b": 40
  },
  "hsl": {
    "h": 113.4,
    "s": 55.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.5658,
    "c": 0.16005,
    "h": 141.5
  },
  "luminance": 0.19613
}

Semantic roles & 50–950 ramp

primary
#338C28
secondary
#AC5AB6
accent
#49DFCE
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #338C28

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

Preview Lab → · Contrast checker → · Palette generator →

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