#338B22#338B22

#338B22 is a mid, vivid green. Relative luminance 0.193; OKLCH L 56.3% C 0.163 H 140.8°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#338B22
RGBrgb(51, 139, 34)
HSLhsl(110, 61%, 34%)
HSVhsv(110, 76%, 55%)
CMYKcmyk(63.3%, 0%, 75.5%, 45.5%)
CIE-LABlab(51.02, -46.05, 45.58)
CIE-LCHlch(51.02, 64.79, 135.29°)
OKLaboklab(56.25% -0.126 0.1029)
OKLCHoklch(56.25% 0.163 140.8)
XYZxyz(10.8861, 19.2835, 4.6615)
Luminance0.1928 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338B22 #7A228B
analogous
#688B22 #338B22 #228B46
triadic
#338B22 #22338B #8B2233
tetradic
#338B22 #22688B #7A228B #8B4622
square
#338B22 #22688B #7A228B #8B4622
split-complementary
#338B22 #46228B #8B2268
monochromatic
#0F290A #215A16 #338B22 #45BC2E #68D553

Accessibility & contrast

On white

4.32
#338B22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#338B22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338B22
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338B22#FFFFFF#000000##000000
##338B221.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E0E
Deuteranopia (green-blind)
#84772D
Tritanopia (blue-blind)
#258677
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #338b22;
/* rgb */ color: rgb(51, 139, 34);
/* oklch */ color: oklch(56.3% 0.163 140.8);
Tailwind
colors: {
  custom: {
    50: '#76ae64',
    500: '#338b22',
    950: '#000000',
  },
}
SCSS
$custom: #338b22;
$custom-light: #76ae64;
$custom-dark: #000000;
JSON
{
  "hex": "#338b22",
  "rgb": {
    "r": 51,
    "g": 139,
    "b": 34
  },
  "hsl": {
    "h": 110.286,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.56253,
    "c": 0.16268,
    "h": 140.8
  },
  "luminance": 0.19285
}

Semantic roles & 50–950 ramp

primary
#338B22
secondary
#A850B8
accent
#44E4CA
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #338B22

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

Preview Lab → · Contrast checker → · Palette generator →

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