#398E1F#398E1F

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

Color values

HEX#398E1F
RGBrgb(57, 142, 31)
HSLhsl(106, 64%, 34%)
HSVhsv(106, 78%, 56%)
CMYKcmyk(59.9%, 0%, 78.2%, 44.3%)
CIE-LABlab(52.19, -45.86, 47.89)
CIE-LCHlch(52.19, 66.30, 133.76°)
OKLaboklab(57.27% -0.1261 0.1072)
OKLCHoklch(57.27% 0.165 139.6)
XYZxyz(11.6072, 20.3138, 4.6053)
Luminance0.2031 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#398E1F #741F8E
analogous
#718E1F #398E1F #1F8E3D
triadic
#398E1F #1F398E #8E1F39
tetradic
#398E1F #1F718E #741F8E #8E3D1F
square
#398E1F #1F718E #741F8E #8E3D1F
split-complementary
#398E1F #3D1F8E #8E1F71
monochromatic
#112A09 #255C14 #398E1F #4DC02A #6FD94F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##398E1F#FFFFFF#000000##000000
##398E1F1.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)
#928104
Deuteranopia (green-blind)
#887A2B
Tritanopia (blue-blind)
#2F8979
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #398e1f;
/* rgb */ color: rgb(57, 142, 31);
/* oklch */ color: oklch(57.3% 0.165 139.6);
Tailwind
colors: {
  custom: {
    50: '#7ab063',
    500: '#398e1f',
    950: '#000000',
  },
}
SCSS
$custom: #398e1f;
$custom-light: #7ab063;
$custom-dark: #000000;
JSON
{
  "hex": "#398e1f",
  "rgb": {
    "r": 57,
    "g": 142,
    "b": 31
  },
  "hsl": {
    "h": 105.946,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.5727,
    "c": 0.16549,
    "h": 139.6
  },
  "luminance": 0.20315
}

Semantic roles & 50–950 ramp

primary
#398E1F
secondary
#A24DBB
accent
#41E7C0
background
#F7FAF6
surface
#EEF5EB
border
#C9CFC6
text
#0A1006
muted
#7C7F7A

Preview Lab

Preview with #398E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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