#338B1E#338B1E

#338B1E is a mid, vivid green. Relative luminance 0.193; OKLCH L 56.2% C 0.165 H 140.4°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#338B1E
RGBrgb(51, 139, 30)
HSLhsl(108, 64%, 33%)
HSVhsv(108, 78%, 55%)
CMYKcmyk(63.3%, 0%, 78.4%, 45.5%)
CIE-LABlab(50.99, -46.35, 47.00)
CIE-LCHlch(50.99, 66.01, 134.60°)
OKLaboklab(56.22% -0.1271 0.1053)
OKLCHoklch(56.22% 0.165 140.4)
XYZxyz(10.8317, 19.2618, 4.3751)
Luminance0.1926 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338B1E #761E8B
analogous
#698B1E #338B1E #1E8B3F
triadic
#338B1E #1E338B #8B1E33
tetradic
#338B1E #1E698B #761E8B #8B3F1E
square
#338B1E #1E698B #761E8B #8B3F1E
split-complementary
#338B1E #3F1E8B #8B1E69
monochromatic
#0E2608 #215913 #338B1E #45BD29 #66D84B

Accessibility & contrast

On white

4.33
#338B1E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#338B1E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338B1E
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338B1E#FFFFFF#000000##000000
##338B1E1.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E04
Deuteranopia (green-blind)
#84772A
Tritanopia (blue-blind)
#268676
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #338b1e;
/* rgb */ color: rgb(51, 139, 30);
/* oklch */ color: oklch(56.2% 0.165 140.4);
Tailwind
colors: {
  custom: {
    50: '#76ae63',
    500: '#338b1e',
    950: '#000000',
  },
}
SCSS
$custom: #338b1e;
$custom-light: #76ae63;
$custom-dark: #000000;
JSON
{
  "hex": "#338b1e",
  "rgb": {
    "r": 51,
    "g": 139,
    "b": 30
  },
  "hsl": {
    "h": 108.44,
    "s": 64.497,
    "l": 33.137
  },
  "oklch": {
    "l": 0.56224,
    "c": 0.165,
    "h": 140.4
  },
  "luminance": 0.19263
}

Semantic roles & 50–950 ramp

primary
#338B1E
secondary
#A54ABB
accent
#40E7C7
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A1006
muted
#7C7F7A

Preview Lab

Preview with #338B1E

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

Preview Lab → · Contrast checker → · Palette generator →

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