#338D24#338D24

#338D24 is a mid, vivid green. Relative luminance 0.199; OKLCH L 56.8% C 0.164 H 141.1°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#338D24
RGBrgb(51, 141, 36)
HSLhsl(111, 59%, 35%)
HSVhsv(111, 74%, 55%)
CMYKcmyk(63.8%, 0%, 74.5%, 44.7%)
CIE-LABlab(51.70, -46.63, 45.51)
CIE-LCHlch(51.70, 65.16, 135.69°)
OKLaboklab(56.82% -0.1275 0.103)
OKLCHoklch(56.82% 0.164 141.1)
XYZxyz(11.2080, 19.8799, 4.9153)
Luminance0.1988 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338D24 #7E248D
analogous
#678D24 #338D24 #248D4A
triadic
#338D24 #24338D #8D2433
tetradic
#338D24 #24678D #7E248D #8D4A24
square
#338D24 #24678D #7E248D #8D4A24
split-complementary
#338D24 #4A248D #8D2467
monochromatic
#102B0B #215C18 #338D24 #45BE30 #69D457

Accessibility & contrast

On white

4.22
#338D24 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#338D24 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338D24
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338D24#FFFFFF#000000##000000
##338D241.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#918011
Deuteranopia (green-blind)
#86782F
Tritanopia (blue-blind)
#248879
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #338d24;
/* rgb */ color: rgb(51, 141, 36);
/* oklch */ color: oklch(56.8% 0.164 141.1);
Tailwind
colors: {
  custom: {
    50: '#77af66',
    500: '#338d24',
    950: '#000000',
  },
}
SCSS
$custom: #338d24;
$custom-light: #77af66;
$custom-dark: #000000;
JSON
{
  "hex": "#338d24",
  "rgb": {
    "r": 51,
    "g": 141,
    "b": 36
  },
  "hsl": {
    "h": 111.429,
    "s": 59.322,
    "l": 34.706
  },
  "oklch": {
    "l": 0.56823,
    "c": 0.1639,
    "h": 141.1
  },
  "luminance": 0.19881
}

Semantic roles & 50–950 ramp

primary
#338D24
secondary
#AA54B8
accent
#45E3CC
background
#F7FAF6
surface
#EEF5EB
border
#C9CFC6
text
#0A1006
muted
#7C7F7A

Preview Lab

Preview with #338D24

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

Preview Lab → · Contrast checker → · Palette generator →

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