#398F1F#398F1F

#398F1F is a mid, vivid green. Relative luminance 0.206; OKLCH L 57.5% C 0.167 H 139.7°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#398F1F
RGBrgb(57, 143, 31)
HSLhsl(106, 64%, 34%)
HSVhsv(106, 78%, 56%)
CMYKcmyk(60.1%, 0%, 78.3%, 43.9%)
CIE-LABlab(52.52, -46.23, 48.21)
CIE-LCHlch(52.52, 66.79, 133.80°)
OKLaboklab(57.55% -0.1271 0.1079)
OKLCHoklch(57.55% 0.167 139.7)
XYZxyz(11.7566, 20.6127, 4.6552)
Luminance0.2061 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#398F1F #751F8F
analogous
#718F1F #398F1F #1F8F3D
triadic
#398F1F #1F398F #8F1F39
tetradic
#398F1F #1F718F #751F8F #8F3D1F
square
#398F1F #1F718F #751F8F #8F3D1F
split-complementary
#398F1F #3D1F8F #8F1F71
monochromatic
#112A09 #255D14 #398F1F #4DC12A #6FD94F

Accessibility & contrast

On white

4.10
#398F1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#398F1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #398F1F
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##398F1F#FFFFFF#000000##000000
##398F1F1.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#938203
Deuteranopia (green-blind)
#897B2B
Tritanopia (blue-blind)
#2E8A7A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #398f1f;
/* rgb */ color: rgb(57, 143, 31);
/* oklch */ color: oklch(57.5% 0.167 139.7);
Tailwind
colors: {
  custom: {
    50: '#7ab164',
    500: '#398f1f',
    950: '#000000',
  },
}
SCSS
$custom: #398f1f;
$custom-light: #7ab164;
$custom-dark: #000000;
JSON
{
  "hex": "#398f1f",
  "rgb": {
    "r": 57,
    "g": 143,
    "b": 31
  },
  "hsl": {
    "h": 106.071,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.57545,
    "c": 0.16668,
    "h": 139.7
  },
  "luminance": 0.20614
}

Semantic roles & 50–950 ramp

primary
#398F1F
secondary
#A24EBC
accent
#40E7C1
background
#F7FAF6
surface
#EEF5EB
border
#C9CFC6
text
#0A1106
muted
#7C807A

Preview Lab

Preview with #398F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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