#398A1F#398A1F

#398A1F is a mid, vivid green. Relative luminance 0.191; OKLCH L 56.2% C 0.161 H 139.4°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#398A1F
RGBrgb(57, 138, 31)
HSLhsl(105, 63%, 33%)
HSVhsv(105, 78%, 54%)
CMYKcmyk(58.7%, 0%, 77.5%, 45.9%)
CIE-LABlab(50.86, -44.34, 46.58)
CIE-LCHlch(50.86, 64.31, 133.59°)
OKLaboklab(56.17% -0.122 0.1045)
OKLCHoklch(56.17% 0.161 139.4)
XYZxyz(11.0227, 19.1448, 4.4105)
Luminance0.1915 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#398A1F #701F8A
analogous
#6E8A1F #398A1F #1F8A3B
triadic
#398A1F #1F398A #8A1F39
tetradic
#398A1F #1F6E8A #701F8A #8A3B1F
square
#398A1F #1F6E8A #701F8A #8A3B1F
split-complementary
#398A1F #3B1F8A #8A1F6E
monochromatic
#102609 #245814 #398A1F #4EBC2A #6ED74C

Accessibility & contrast

On white

4.35
#398A1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#398A1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #398A1F
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##398A1F#FFFFFF#000000##000000
##398A1F1.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D07
Deuteranopia (green-blind)
#84772B
Tritanopia (blue-blind)
#308576
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #398a1f;
/* rgb */ color: rgb(57, 138, 31);
/* oklch */ color: oklch(56.2% 0.161 139.4);
Tailwind
colors: {
  custom: {
    50: '#79ad63',
    500: '#398a1f',
    950: '#000000',
  },
}
SCSS
$custom: #398a1f;
$custom-light: #79ad63;
$custom-dark: #000000;
JSON
{
  "hex": "#398a1f",
  "rgb": {
    "r": 57,
    "g": 138,
    "b": 31
  },
  "hsl": {
    "h": 105.421,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.56168,
    "c": 0.16062,
    "h": 139.4
  },
  "luminance": 0.19146
}

Semantic roles & 50–950 ramp

primary
#398A1F
secondary
#9F4BBA
accent
#41E6BE
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A1006
muted
#7C7F7A

Preview Lab

Preview with #398A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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