#398B1F#398B1F

#398B1F is a mid, vivid green. Relative luminance 0.194; OKLCH L 56.4% C 0.162 H 139.5°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#398B1F
RGBrgb(57, 139, 31)
HSLhsl(106, 64%, 33%)
HSVhsv(106, 78%, 55%)
CMYKcmyk(59%, 0%, 77.7%, 45.5%)
CIE-LABlab(51.19, -44.73, 46.91)
CIE-LCHlch(51.19, 64.81, 133.63°)
OKLaboklab(56.44% -0.123 0.1052)
OKLCHoklch(56.44% 0.162 139.5)
XYZxyz(11.1668, 19.4331, 4.4586)
Luminance0.1943 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#398B1F #711F8B
analogous
#6F8B1F #398B1F #1F8B3B
triadic
#398B1F #1F398B #8B1F39
tetradic
#398B1F #1F6F8B #711F8B #8B3B1F
square
#398B1F #1F6F8B #711F8B #8B3B1F
split-complementary
#398B1F #3B1F8B #8B1F6F
monochromatic
#102709 #245914 #398B1F #4EBD2A #6ED74D

Accessibility & contrast

On white

4.30
#398B1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#398B1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #398B1F
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##398B1F#FFFFFF#000000##000000
##398B1F1.004.304.894.89
#FFFFFF4.301.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E06
Deuteranopia (green-blind)
#85772B
Tritanopia (blue-blind)
#308677
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #398b1f;
/* rgb */ color: rgb(57, 139, 31);
/* oklch */ color: oklch(56.4% 0.162 139.5);
Tailwind
colors: {
  custom: {
    50: '#79ae63',
    500: '#398b1f',
    950: '#000000',
  },
}
SCSS
$custom: #398b1f;
$custom-light: #79ae63;
$custom-dark: #000000;
JSON
{
  "hex": "#398b1f",
  "rgb": {
    "r": 57,
    "g": 139,
    "b": 31
  },
  "hsl": {
    "h": 105.556,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.56444,
    "c": 0.16183,
    "h": 139.5
  },
  "luminance": 0.19434
}

Semantic roles & 50–950 ramp

primary
#398B1F
secondary
#A04CBA
accent
#41E7BF
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A1006
muted
#7C7F7A

Preview Lab

Preview with #398B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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