#398C1F#398C1F

#398C1F is a mid, vivid green. Relative luminance 0.197; OKLCH L 56.7% C 0.163 H 139.5°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#398C1F
RGBrgb(57, 140, 31)
HSLhsl(106, 64%, 34%)
HSVhsv(106, 78%, 55%)
CMYKcmyk(59.3%, 0%, 77.9%, 45.1%)
CIE-LABlab(51.52, -45.10, 47.24)
CIE-LCHlch(51.52, 65.31, 133.68°)
OKLaboklab(56.72% -0.124 0.1058)
OKLCHoklch(56.72% 0.163 139.5)
XYZxyz(11.3123, 19.7240, 4.5070)
Luminance0.1973 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#398C1F #721F8C
analogous
#6F8C1F #398C1F #1F8C3B
triadic
#398C1F #1F398C #8C1F39
tetradic
#398C1F #1F6F8C #721F8C #8C3B1F
square
#398C1F #1F6F8C #721F8C #8C3B1F
split-complementary
#398C1F #3B1F8C #8C1F6F
monochromatic
#102809 #255A14 #398C1F #4DBE2A #6FD84E

Accessibility & contrast

On white

4.25
#398C1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#398C1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #398C1F
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##398C1F#FFFFFF#000000##000000
##398C1F1.004.254.954.95
#FFFFFF4.251.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F05
Deuteranopia (green-blind)
#86782B
Tritanopia (blue-blind)
#2F8777
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #398c1f;
/* rgb */ color: rgb(57, 140, 31);
/* oklch */ color: oklch(56.7% 0.163 139.5);
Tailwind
colors: {
  custom: {
    50: '#7aae63',
    500: '#398c1f',
    950: '#000000',
  },
}
SCSS
$custom: #398c1f;
$custom-light: #7aae63;
$custom-dark: #000000;
JSON
{
  "hex": "#398c1f",
  "rgb": {
    "r": 57,
    "g": 140,
    "b": 31
  },
  "hsl": {
    "h": 105.688,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.56719,
    "c": 0.16306,
    "h": 139.5
  },
  "luminance": 0.19725
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #398C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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