#338D34#338D34

#338D34 is a mid, vivid green. Relative luminance 0.200; OKLCH L 57.0% C 0.152 H 143.4°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#338D34
RGBrgb(51, 141, 52)
HSLhsl(121, 47%, 38%)
HSVhsv(121, 64%, 55%)
CMYKcmyk(63.8%, 0%, 63.1%, 44.7%)
CIE-LABlab(51.84, -45.04, 38.79)
CIE-LCHlch(51.84, 59.44, 139.26°)
OKLaboklab(56.98% -0.1223 0.0908)
OKLCHoklch(56.98% 0.152 143.4)
XYZxyz(11.5093, 20.0004, 6.5021)
Luminance0.2000 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338D34 #8D338C
analogous
#5F8D33 #338D34 #338D61
triadic
#338D34 #34338D #8D3433
tetradic
#338D34 #335F8D #8D338C #8D6133
square
#338D34 #335F8D #8D338C #8D6133
split-complementary
#338D34 #61338D #8D335F
monochromatic
#123313 #236023 #338D34 #43BA45 #6FCB70

Accessibility & contrast

On white

4.20
#338D34 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#338D34 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338D34
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338D34#FFFFFF#000000##000000
##338D341.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#90802A
Deuteranopia (green-blind)
#85793B
Tritanopia (blue-blind)
#21897A
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #338d34;
/* rgb */ color: rgb(51, 141, 52);
/* oklch */ color: oklch(57.0% 0.152 143.4);
Tailwind
colors: {
  custom: {
    50: '#76af6f',
    500: '#338d34',
    950: '#000000',
  },
}
SCSS
$custom: #338d34;
$custom-light: #76af6f;
$custom-dark: #000000;
JSON
{
  "hex": "#338d34",
  "rgb": {
    "r": 51,
    "g": 141,
    "b": 52
  },
  "hsl": {
    "h": 120.667,
    "s": 46.875,
    "l": 37.647
  },
  "oklch": {
    "l": 0.5698,
    "c": 0.15228,
    "h": 143.4
  },
  "luminance": 0.20001
}

Semantic roles & 50–950 ramp

primary
#338D34
secondary
#B369B2
accent
#51D5D7
background
#F7FAF6
surface
#EEF5EC
border
#C9CFC7
text
#091007
muted
#7B7F7A

Preview Lab

Preview with #338D34

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

Preview Lab → · Contrast checker → · Palette generator →

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