#398B18#398B18

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

Color values

HEX#398B18
RGBrgb(57, 139, 24)
HSLhsl(103, 71%, 32%)
HSVhsv(103, 83%, 55%)
CMYKcmyk(59%, 0%, 82.7%, 45.5%)
CIE-LABlab(51.15, -45.16, 49.16)
CIE-LCHlch(51.15, 66.76, 132.58°)
OKLaboklab(56.4% -0.1246 0.1088)
OKLCHoklch(56.4% 0.165 138.9)
XYZxyz(11.0844, 19.4001, 4.0245)
Luminance0.1940 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#398B18 #6A188B
analogous
#728B18 #398B18 #188B31
triadic
#398B18 #18398B #8B1839
tetradic
#398B18 #18728B #6A188B #8B3118
square
#398B18 #18728B #6A188B #8B3118
split-complementary
#398B18 #31188B #8B1872
monochromatic
#0E2306 #24570F #398B18 #4EBF21 #6DDE3F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##398B18#FFFFFF#000000##000000
##398B181.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)
#857726
Tritanopia (blue-blind)
#308676
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #398b18;
/* rgb */ color: rgb(57, 139, 24);
/* oklch */ color: oklch(56.4% 0.165 138.9);
Tailwind
colors: {
  custom: {
    50: '#7aae60',
    500: '#398b18',
    950: '#000000',
  },
}
SCSS
$custom: #398b18;
$custom-light: #7aae60;
$custom-dark: #000000;
JSON
{
  "hex": "#398b18",
  "rgb": {
    "r": 57,
    "g": 139,
    "b": 24
  },
  "hsl": {
    "h": 102.783,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.564,
    "c": 0.16542,
    "h": 138.9
  },
  "luminance": 0.19401
}

Semantic roles & 50–950 ramp

primary
#398B18
secondary
#9A40BE
accent
#3AEDBA
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A1005
muted
#7C7F79

Preview Lab

Preview with #398B18

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

Preview Lab → · Contrast checker → · Palette generator →

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