#398D40#398D40

#398D40 is a mid, vivid green. Relative luminance 0.203; OKLCH L 57.3% C 0.139 H 145.0°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#398D40
RGBrgb(57, 141, 64)
HSLhsl(125, 42%, 39%)
HSVhsv(125, 60%, 55%)
CMYKcmyk(59.6%, 0%, 54.6%, 44.7%)
CIE-LABlab(52.16, -42.02, 33.32)
CIE-LCHlch(52.16, 53.62, 141.59°)
OKLaboklab(57.35% -0.1139 0.0799)
OKLCHoklch(57.35% 0.139 145)
XYZxyz(12.1369, 20.2887, 8.1260)
Luminance0.2029 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#398D40 #8D3986
analogous
#5C8D39 #398D40 #398D6A
triadic
#398D40 #40398D #8D4039
tetradic
#398D40 #395C8D #8D3986 #8D6A39
square
#398D40 #395C8D #8D3986 #8D6A39
split-complementary
#398D40 #6A398D #8D395C
monochromatic
#163618 #27612C #398D40 #4CB755 #78C87F

Accessibility & contrast

On white

4.15
#398D40 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#398D40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #398D40
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##398D40#FFFFFF#000000##000000
##398D401.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F8139
Deuteranopia (green-blind)
#847A46
Tritanopia (blue-blind)
#298A7C
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #398d40;
/* rgb */ color: rgb(57, 141, 64);
/* oklch */ color: oklch(57.3% 0.139 145.0);
Tailwind
colors: {
  custom: {
    50: '#78af77',
    500: '#398d40',
    950: '#000000',
  },
}
SCSS
$custom: #398d40;
$custom-light: #78af77;
$custom-dark: #000000;
JSON
{
  "hex": "#398d40",
  "rgb": {
    "r": 57,
    "g": 141,
    "b": 64
  },
  "hsl": {
    "h": 125,
    "s": 42.424,
    "l": 38.824
  },
  "oklch": {
    "l": 0.57345,
    "c": 0.13909,
    "h": 145
  },
  "luminance": 0.2029
}

Semantic roles & 50–950 ramp

primary
#398D40
secondary
#B270AC
accent
#56C8D2
background
#F7FAF7
surface
#EEF5ED
border
#C9CFC8
text
#0A1009
muted
#7C7F7B

Preview Lab

Preview with #398D40

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

Preview Lab → · Contrast checker → · Palette generator →

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