#398B17#398B17

#398B17 is a mid, vivid green. Relative luminance 0.194; OKLCH L 56.4% C 0.166 H 138.8°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#398B17
RGBrgb(57, 139, 23)
HSLhsl(102, 72%, 32%)
HSVhsv(102, 83%, 55%)
CMYKcmyk(59%, 0%, 83.5%, 45.5%)
CIE-LABlab(51.15, -45.22, 49.45)
CIE-LCHlch(51.15, 67.01, 132.44°)
OKLaboklab(56.4% -0.1248 0.1093)
OKLCHoklch(56.4% 0.166 138.8)
XYZxyz(11.0742, 19.3960, 3.9707)
Luminance0.1940 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#398B17 #69178B
analogous
#738B17 #398B17 #178B2F
triadic
#398B17 #17398B #8B1739
tetradic
#398B17 #17738B #69178B #8B2F17
square
#398B17 #17738B #69178B #8B2F17
split-complementary
#398B17 #2F178B #8B1773
monochromatic
#0E2206 #23560E #398B17 #4FC020 #6DDF3D

Accessibility & contrast

On white

4.30
#398B17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#398B17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #398B17
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##398B17#FFFFFF#000000##000000
##398B171.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E00
Deuteranopia (green-blind)
#857725
Tritanopia (blue-blind)
#308676
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #398b17;
/* rgb */ color: rgb(57, 139, 23);
/* oklch */ color: oklch(56.4% 0.166 138.8);
Tailwind
colors: {
  custom: {
    50: '#7aae60',
    500: '#398b17',
    950: '#000000',
  },
}
SCSS
$custom: #398b17;
$custom-light: #7aae60;
$custom-dark: #000000;
JSON
{
  "hex": "#398b17",
  "rgb": {
    "r": 57,
    "g": 139,
    "b": 23
  },
  "hsl": {
    "h": 102.414,
    "s": 71.605,
    "l": 31.765
  },
  "oklch": {
    "l": 0.56395,
    "c": 0.16588,
    "h": 138.8
  },
  "luminance": 0.19397
}

Semantic roles & 50–950 ramp

primary
#398B17
secondary
#993FBF
accent
#39EEB9
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A1005
muted
#7C7F79

Preview Lab

Preview with #398B17

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

Preview Lab → · Contrast checker → · Palette generator →

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