#338C2E#338C2E

#338C2E is a mid, vivid green. Relative luminance 0.197; OKLCH L 56.6% C 0.156 H 142.4°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#338C2E
RGBrgb(51, 140, 46)
HSLhsl(117, 51%, 36%)
HSVhsv(117, 67%, 55%)
CMYKcmyk(63.6%, 0%, 67.1%, 45.1%)
CIE-LABlab(51.45, -45.32, 41.09)
CIE-LCHlch(51.45, 61.18, 137.80°)
OKLaboklab(56.64% -0.1234 0.095)
OKLCHoklch(56.64% 0.156 142.4)
XYZxyz(11.2359, 19.6562, 5.7861)
Luminance0.1966 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338C2E #872E8C
analogous
#628C2E #338C2E #2E8C58
triadic
#338C2E #2E338C #8C2E33
tetradic
#338C2E #2E628C #872E8C #8C582E
square
#338C2E #2E628C #872E8C #8C582E
split-complementary
#338C2E #582E8C #8C2E62
monochromatic
#113010 #225E1F #338C2E #44BA3D #6DCD67

Accessibility & contrast

On white

4.26
#338C2E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#338C2E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338C2E
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338C2E#FFFFFF#000000##000000
##338C2E1.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7F22
Deuteranopia (green-blind)
#847836
Tritanopia (blue-blind)
#238879
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #338c2e;
/* rgb */ color: rgb(51, 140, 46);
/* oklch */ color: oklch(56.6% 0.156 142.4);
Tailwind
colors: {
  custom: {
    50: '#76ae6b',
    500: '#338c2e',
    950: '#000000',
  },
}
SCSS
$custom: #338c2e;
$custom-light: #76ae6b;
$custom-dark: #000000;
JSON
{
  "hex": "#338c2e",
  "rgb": {
    "r": 51,
    "g": 140,
    "b": 46
  },
  "hsl": {
    "h": 116.809,
    "s": 50.538,
    "l": 36.471
  },
  "oklch": {
    "l": 0.56638,
    "c": 0.15572,
    "h": 142.4
  },
  "luminance": 0.19657
}

Semantic roles & 50–950 ramp

primary
#338C2E
secondary
#B062B4
accent
#4EDAD3
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#091007
muted
#7B7F7A

Preview Lab

Preview with #338C2E

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

Preview Lab → · Contrast checker → · Palette generator →

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