#338B31#338B31

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

Color values

HEX#338B31
RGBrgb(51, 139, 49)
HSLhsl(119, 48%, 37%)
HSVhsv(119, 65%, 55%)
CMYKcmyk(63.3%, 0%, 64.7%, 45.5%)
CIE-LABlab(51.14, -44.62, 39.40)
CIE-LCHlch(51.14, 59.52, 138.56°)
OKLaboklab(56.39% -0.1213 0.0918)
OKLCHoklch(56.39% 0.152 142.9)
XYZxyz(11.1516, 19.3897, 6.0600)
Luminance0.1939 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338B31 #89318B
analogous
#608B31 #338B31 #318B5C
triadic
#338B31 #31338B #8B3133
tetradic
#338B31 #31608B #89318B #8B5C31
square
#338B31 #31608B #89318B #8B5C31
split-complementary
#338B31 #5C318B #8B3160
monochromatic
#123111 #225E21 #338B31 #44B841 #6ECB6B

Accessibility & contrast

On white

4.30
#338B31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#338B31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338B31
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338B31#FFFFFF#000000##000000
##338B311.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7E26
Deuteranopia (green-blind)
#837739
Tritanopia (blue-blind)
#228778
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #338b31;
/* rgb */ color: rgb(51, 139, 49);
/* oklch */ color: oklch(56.4% 0.152 142.9);
Tailwind
colors: {
  custom: {
    50: '#76ae6d',
    500: '#338b31',
    950: '#000000',
  },
}
SCSS
$custom: #338b31;
$custom-light: #76ae6d;
$custom-dark: #000000;
JSON
{
  "hex": "#338b31",
  "rgb": {
    "r": 51,
    "g": 139,
    "b": 49
  },
  "hsl": {
    "h": 118.667,
    "s": 47.872,
    "l": 36.863
  },
  "oklch": {
    "l": 0.56394,
    "c": 0.1521,
    "h": 142.9
  },
  "luminance": 0.19391
}

Semantic roles & 50–950 ramp

primary
#338B31
secondary
#B165B2
accent
#50D7D4
background
#F7FAF6
surface
#EEF4EC
border
#C9CEC7
text
#091007
muted
#7B7F7A

Preview Lab

Preview with #338B31

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

Preview Lab → · Contrast checker → · Palette generator →

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