#338D2E#338D2E

#338D2E is a mid, vivid green. Relative luminance 0.200; OKLCH L 56.9% C 0.157 H 142.4°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#338D2E
RGBrgb(51, 141, 46)
HSLhsl(117, 51%, 37%)
HSVhsv(117, 67%, 55%)
CMYKcmyk(63.8%, 0%, 67.4%, 44.7%)
CIE-LABlab(51.78, -45.70, 41.46)
CIE-LCHlch(51.78, 61.70, 137.79°)
OKLaboklab(56.91% -0.1244 0.0958)
OKLCHoklch(56.91% 0.157 142.4)
XYZxyz(11.3826, 19.9497, 5.8351)
Luminance0.1995 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338D2E #882E8D
analogous
#638D2E #338D2E #2E8D59
triadic
#338D2E #2E338D #8D2E33
tetradic
#338D2E #2E638D #882E8D #8D592E
square
#338D2E #2E638D #882E8D #8D592E
split-complementary
#338D2E #592E8D #8D2E63
monochromatic
#123110 #225F1F #338D2E #44BB3D #6DCE68

Accessibility & contrast

On white

4.21
#338D2E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#338D2E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338D2E
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338D2E#FFFFFF#000000##000000
##338D2E1.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#908022
Deuteranopia (green-blind)
#857936
Tritanopia (blue-blind)
#228979
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #338d2e;
/* rgb */ color: rgb(51, 141, 46);
/* oklch */ color: oklch(56.9% 0.157 142.4);
Tailwind
colors: {
  custom: {
    50: '#76af6b',
    500: '#338d2e',
    950: '#000000',
  },
}
SCSS
$custom: #338d2e;
$custom-light: #76af6b;
$custom-dark: #000000;
JSON
{
  "hex": "#338d2e",
  "rgb": {
    "r": 51,
    "g": 141,
    "b": 46
  },
  "hsl": {
    "h": 116.842,
    "s": 50.802,
    "l": 36.667
  },
  "oklch": {
    "l": 0.56914,
    "c": 0.15701,
    "h": 142.4
  },
  "luminance": 0.19951
}

Semantic roles & 50–950 ramp

primary
#338D2E
secondary
#B062B5
accent
#4EDAD3
background
#F7FAF6
surface
#EEF5EB
border
#C9CFC6
text
#091007
muted
#7B7F7A

Preview Lab

Preview with #338D2E

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

Preview Lab → · Contrast checker → · Palette generator →

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