#338B2E#338B2E

#338B2E is a mid, vivid green. Relative luminance 0.194; OKLCH L 56.4% C 0.154 H 142.4°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#338B2E
RGBrgb(51, 139, 46)
HSLhsl(117, 50%, 36%)
HSVhsv(117, 67%, 55%)
CMYKcmyk(63.3%, 0%, 66.9%, 45.5%)
CIE-LABlab(51.11, -44.95, 40.73)
CIE-LCHlch(51.11, 60.65, 137.82°)
OKLaboklab(56.36% -0.1224 0.0942)
OKLCHoklch(56.36% 0.154 142.4)
XYZxyz(11.0904, 19.3652, 5.7377)
Luminance0.1937 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338B2E #862E8B
analogous
#628B2E #338B2E #2E8B58
triadic
#338B2E #2E338B #8B2E33
tetradic
#338B2E #2E628B #862E8B #8B582E
square
#338B2E #2E628B #862E8B #8B582E
split-complementary
#338B2E #582E8B #8B2E62
monochromatic
#112F10 #225D1F #338B2E #44B93D #6CCD67

Accessibility & contrast

On white

4.31
#338B2E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#338B2E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338B2E
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338B2E#FFFFFF#000000##000000
##338B2E1.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7E22
Deuteranopia (green-blind)
#837736
Tritanopia (blue-blind)
#238778
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #338b2e;
/* rgb */ color: rgb(51, 139, 46);
/* oklch */ color: oklch(56.4% 0.154 142.4);
Tailwind
colors: {
  custom: {
    50: '#76ae6b',
    500: '#338b2e',
    950: '#000000',
  },
}
SCSS
$custom: #338b2e;
$custom-light: #76ae6b;
$custom-dark: #000000;
JSON
{
  "hex": "#338b2e",
  "rgb": {
    "r": 51,
    "g": 139,
    "b": 46
  },
  "hsl": {
    "h": 116.774,
    "s": 50.27,
    "l": 36.275
  },
  "oklch": {
    "l": 0.56362,
    "c": 0.15444,
    "h": 142.4
  },
  "luminance": 0.19366
}

Semantic roles & 50–950 ramp

primary
#338B2E
secondary
#AF61B3
accent
#4EDAD2
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#091007
muted
#7B7F7A

Preview Lab

Preview with #338B2E

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

Preview Lab → · Contrast checker → · Palette generator →

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