#398D18#398D18

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

Color values

HEX#398D18
RGBrgb(57, 141, 24)
HSLhsl(103, 71%, 32%)
HSVhsv(103, 83%, 55%)
CMYKcmyk(59.6%, 0%, 83%, 44.7%)
CIE-LABlab(51.82, -45.91, 49.78)
CIE-LCHlch(51.82, 67.72, 132.69°)
OKLaboklab(56.95% -0.1266 0.1101)
OKLCHoklch(56.95% 0.168 139)
XYZxyz(11.3766, 19.9846, 4.1219)
Luminance0.1999 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#398D18 #6C188D
analogous
#748D18 #398D18 #188D32
triadic
#398D18 #18398D #8D1839
tetradic
#398D18 #18748D #6C188D #8D3218
square
#398D18 #18748D #6C188D #8D3218
split-complementary
#398D18 #32188D #8D1874
monochromatic
#0F2406 #24590F #398D18 #4EC121 #6DDF41

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##398D18#FFFFFF#000000##000000
##398D181.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: #398d18;
/* rgb */ color: rgb(57, 141, 24);
/* oklch */ color: oklch(57.0% 0.168 139.0);
Tailwind
colors: {
  custom: {
    50: '#7aaf60',
    500: '#398d18',
    950: '#000000',
  },
}
SCSS
$custom: #398d18;
$custom-light: #7aaf60;
$custom-dark: #000000;
JSON
{
  "hex": "#398d18",
  "rgb": {
    "r": 57,
    "g": 141,
    "b": 24
  },
  "hsl": {
    "h": 103.077,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.56952,
    "c": 0.16779,
    "h": 139
  },
  "luminance": 0.19986
}

Semantic roles & 50–950 ramp

primary
#398D18
secondary
#9C42BF
accent
#3AEEBB
background
#F7FAF6
surface
#EEF5EB
border
#C9CFC6
text
#0A1005
muted
#7C7F7A

Preview Lab

Preview with #398D18

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

Preview Lab → · Contrast checker → · Palette generator →

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