#398D17#398D17

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

Color values

HEX#398D17
RGBrgb(57, 141, 23)
HSLhsl(103, 72%, 32%)
HSVhsv(103, 84%, 55%)
CMYKcmyk(59.6%, 0%, 83.7%, 44.7%)
CIE-LABlab(51.82, -45.97, 50.06)
CIE-LCHlch(51.82, 67.97, 132.56°)
OKLaboklab(56.95% -0.1268 0.1106)
OKLCHoklch(56.95% 0.168 138.9)
XYZxyz(11.3664, 19.9805, 4.0681)
Luminance0.1998 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#398D17 #6B178D
analogous
#748D17 #398D17 #178D30
triadic
#398D17 #17398D #8D1739
tetradic
#398D17 #17748D #6B178D #8D3017
square
#398D17 #17748D #6B178D #8D3017
split-complementary
#398D17 #30178D #8D1774
monochromatic
#0E2406 #24580E #398D17 #4EC220 #6DE03F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##398D17#FFFFFF#000000##000000
##398D171.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)
#918000
Deuteranopia (green-blind)
#877926
Tritanopia (blue-blind)
#308878
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #398d17;
/* rgb */ color: rgb(57, 141, 23);
/* oklch */ color: oklch(56.9% 0.168 138.9);
Tailwind
colors: {
  custom: {
    50: '#7aaf60',
    500: '#398d17',
    950: '#000000',
  },
}
SCSS
$custom: #398d17;
$custom-light: #7aaf60;
$custom-dark: #000000;
JSON
{
  "hex": "#398d17",
  "rgb": {
    "r": 57,
    "g": 141,
    "b": 23
  },
  "hsl": {
    "h": 102.712,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.56947,
    "c": 0.16823,
    "h": 138.9
  },
  "luminance": 0.19981
}

Semantic roles & 50–950 ramp

primary
#398D17
secondary
#9B40C0
accent
#39EFBA
background
#F7FAF5
surface
#EEF5EA
border
#C9CFC6
text
#0A1005
muted
#7C7F79

Preview Lab

Preview with #398D17

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

Preview Lab → · Contrast checker → · Palette generator →

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