#398D1F#398D1F

#398D1F is a mid, vivid green. Relative luminance 0.200; OKLCH L 57.0% C 0.164 H 139.6°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#398D1F
RGBrgb(57, 141, 31)
HSLhsl(106, 64%, 34%)
HSVhsv(106, 78%, 55%)
CMYKcmyk(59.6%, 0%, 78%, 44.7%)
CIE-LABlab(51.86, -45.48, 47.56)
CIE-LCHlch(51.86, 65.81, 133.72°)
OKLaboklab(57% -0.1251 0.1065)
OKLCHoklch(57% 0.164 139.6)
XYZxyz(11.4591, 20.0175, 4.5560)
Luminance0.2002 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#398D1F #731F8D
analogous
#708D1F #398D1F #1F8D3C
triadic
#398D1F #1F398D #8D1F39
tetradic
#398D1F #1F708D #731F8D #8D3C1F
square
#398D1F #1F708D #731F8D #8D3C1F
split-complementary
#398D1F #3C1F8D #8D1F70
monochromatic
#102909 #255B14 #398D1F #4DBF2A #6FD84E

Accessibility & contrast

On white

4.20
#398D1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#398D1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #398D1F
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##398D1F#FFFFFF#000000##000000
##398D1F1.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#918005
Deuteranopia (green-blind)
#87792B
Tritanopia (blue-blind)
#2F8878
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #398d1f;
/* rgb */ color: rgb(57, 141, 31);
/* oklch */ color: oklch(57.0% 0.164 139.6);
Tailwind
colors: {
  custom: {
    50: '#7aaf63',
    500: '#398d1f',
    950: '#000000',
  },
}
SCSS
$custom: #398d1f;
$custom-light: #7aaf63;
$custom-dark: #000000;
JSON
{
  "hex": "#398d1f",
  "rgb": {
    "r": 57,
    "g": 141,
    "b": 31
  },
  "hsl": {
    "h": 105.818,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.56995,
    "c": 0.16427,
    "h": 139.6
  },
  "luminance": 0.20019
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #398D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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