#398A17#398A17

#398A17 is a mid, vivid green. Relative luminance 0.191; OKLCH L 56.1% C 0.165 H 138.7°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#398A17
RGBrgb(57, 138, 23)
HSLhsl(102, 71%, 32%)
HSVhsv(102, 83%, 54%)
CMYKcmyk(58.7%, 0%, 83.3%, 45.9%)
CIE-LABlab(50.81, -44.84, 49.14)
CIE-LCHlch(50.81, 66.53, 132.38°)
OKLaboklab(56.12% -0.1238 0.1086)
OKLCHoklch(56.12% 0.165 138.7)
XYZxyz(10.9300, 19.1077, 3.9226)
Luminance0.1911 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#398A17 #68178A
analogous
#738A17 #398A17 #178A2F
triadic
#398A17 #17398A #8A1739
tetradic
#398A17 #17738A #68178A #8A2F17
square
#398A17 #17738A #68178A #8A2F17
split-complementary
#398A17 #2F178A #8A1773
monochromatic
#0E2106 #23560E #398A17 #4FBE20 #6DDF3D

Accessibility & contrast

On white

4.36
#398A17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#398A17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #398A17
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##398A17#FFFFFF#000000##000000
##398A171.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D00
Deuteranopia (green-blind)
#847625
Tritanopia (blue-blind)
#318575
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #398a17;
/* rgb */ color: rgb(57, 138, 23);
/* oklch */ color: oklch(56.1% 0.165 138.7);
Tailwind
colors: {
  custom: {
    50: '#7aad5f',
    500: '#398a17',
    950: '#000000',
  },
}
SCSS
$custom: #398a17;
$custom-light: #7aad5f;
$custom-dark: #000000;
JSON
{
  "hex": "#398a17",
  "rgb": {
    "r": 57,
    "g": 138,
    "b": 23
  },
  "hsl": {
    "h": 102.261,
    "s": 71.429,
    "l": 31.569
  },
  "oklch": {
    "l": 0.56119,
    "c": 0.16469,
    "h": 138.7
  },
  "luminance": 0.19109
}

Semantic roles & 50–950 ramp

primary
#398A17
secondary
#983FBE
accent
#3AEEB9
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A1005
muted
#7C7F79

Preview Lab

Preview with #398A17

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

Preview Lab → · Contrast checker → · Palette generator →

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