#398A18#398A18

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

Color values

HEX#398A18
RGBrgb(57, 138, 24)
HSLhsl(103, 70%, 32%)
HSVhsv(103, 83%, 54%)
CMYKcmyk(58.7%, 0%, 82.6%, 45.9%)
CIE-LABlab(50.82, -44.79, 48.85)
CIE-LCHlch(50.82, 66.27, 132.52°)
OKLaboklab(56.12% -0.1236 0.1082)
OKLCHoklch(56.12% 0.164 138.8)
XYZxyz(10.9403, 19.1118, 3.9764)
Luminance0.1911 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#398A18 #69188A
analogous
#728A18 #398A18 #188A30
triadic
#398A18 #18398A #8A1839
tetradic
#398A18 #18728A #69188A #8A3018
square
#398A18 #18728A #69188A #8A3018
split-complementary
#398A18 #30188A #8A1872
monochromatic
#0E2206 #23560F #398A18 #4FBE21 #6DDE3F

Accessibility & contrast

On white

4.35
#398A18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##398A18#FFFFFF#000000##000000
##398A181.004.354.824.82
#FFFFFF4.351.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #398a18;
/* rgb */ color: rgb(57, 138, 24);
/* oklch */ color: oklch(56.1% 0.164 138.8);
Tailwind
colors: {
  custom: {
    50: '#7aad60',
    500: '#398a18',
    950: '#000000',
  },
}
SCSS
$custom: #398a18;
$custom-light: #7aad60;
$custom-dark: #000000;
JSON
{
  "hex": "#398a18",
  "rgb": {
    "r": 57,
    "g": 138,
    "b": 24
  },
  "hsl": {
    "h": 102.632,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.56124,
    "c": 0.16423,
    "h": 138.8
  },
  "luminance": 0.19113
}

Semantic roles & 50–950 ramp

primary
#398A18
secondary
#9940BD
accent
#3BEDB9
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A1005
muted
#7C7F79

Preview Lab

Preview with #398A18

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

Preview Lab → · Contrast checker → · Palette generator →

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