#398B40#398B40

#398B40 is a mid, vivid green. Relative luminance 0.197; OKLCH L 56.8% C 0.136 H 145.0°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#398B40
RGBrgb(57, 139, 64)
HSLhsl(125, 42%, 38%)
HSVhsv(125, 59%, 55%)
CMYKcmyk(59%, 0%, 54%, 45.5%)
CIE-LABlab(51.50, -41.21, 32.51)
CIE-LCHlch(51.50, 52.49, 141.72°)
OKLaboklab(56.8% -0.1117 0.0781)
OKLCHoklch(56.8% 0.136 145)
XYZxyz(11.8447, 19.7042, 8.0286)
Luminance0.1971 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#398B40 #8B3984
analogous
#5B8B39 #398B40 #398B69
triadic
#398B40 #40398B #8B4039
tetradic
#398B40 #395B8B #8B3984 #8B6939
square
#398B40 #395B8B #8B3984 #8B6939
split-complementary
#398B40 #69398B #8B395B
monochromatic
#153418 #27602C #398B40 #4CB555 #77C77E

Accessibility & contrast

On white

4.25
#398B40 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#398B40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #398B40
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##398B40#FFFFFF#000000##000000
##398B401.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7F39
Deuteranopia (green-blind)
#837845
Tritanopia (blue-blind)
#29887A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #398b40;
/* rgb */ color: rgb(57, 139, 64);
/* oklch */ color: oklch(56.8% 0.136 145.0);
Tailwind
colors: {
  custom: {
    50: '#78ae77',
    500: '#398b40',
    950: '#000000',
  },
}
SCSS
$custom: #398b40;
$custom-light: #78ae77;
$custom-dark: #000000;
JSON
{
  "hex": "#398b40",
  "rgb": {
    "r": 57,
    "g": 139,
    "b": 64
  },
  "hsl": {
    "h": 125.122,
    "s": 41.837,
    "l": 38.431
  },
  "oklch": {
    "l": 0.568,
    "c": 0.13628,
    "h": 145
  },
  "luminance": 0.19705
}

Semantic roles & 50–950 ramp

primary
#398B40
secondary
#B06FAB
accent
#56C7D2
background
#F7FAF7
surface
#EEF4ED
border
#C9CEC8
text
#091009
muted
#7B7F7B

Preview Lab

Preview with #398B40

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

Preview Lab → · Contrast checker → · Palette generator →

#398B40 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva