#398D1B#398D1B

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

Color values

HEX#398D1B
RGBrgb(57, 141, 27)
HSLhsl(104, 68%, 33%)
HSVhsv(104, 81%, 55%)
CMYKcmyk(59.6%, 0%, 80.9%, 44.7%)
CIE-LABlab(51.83, -45.74, 48.87)
CIE-LCHlch(51.83, 66.94, 133.10°)
OKLaboklab(56.97% -0.126 0.1087)
OKLCHoklch(56.97% 0.166 139.2)
XYZxyz(11.4096, 19.9977, 4.2954)
Luminance0.2000 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#398D1B #6F1B8D
analogous
#728D1B #398D1B #1B8D36
triadic
#398D1B #1B398D #8D1B39
tetradic
#398D1B #1B728D #6F1B8D #8D361B
square
#398D1B #1B728D #6F1B8D #8D361B
split-complementary
#398D1B #361B8D #8D1B72
monochromatic
#0F2607 #245A11 #398D1B #4EC025 #6EDC47

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##398D1B#FFFFFF#000000##000000
##398D1B1.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)
#877928
Tritanopia (blue-blind)
#2F8878
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #398d1b;
/* rgb */ color: rgb(57, 141, 27);
/* oklch */ color: oklch(57.0% 0.166 139.2);
Tailwind
colors: {
  custom: {
    50: '#7aaf62',
    500: '#398d1b',
    950: '#000000',
  },
}
SCSS
$custom: #398d1b;
$custom-light: #7aaf62;
$custom-dark: #000000;
JSON
{
  "hex": "#398d1b",
  "rgb": {
    "r": 57,
    "g": 141,
    "b": 27
  },
  "hsl": {
    "h": 104.211,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.56969,
    "c": 0.16637,
    "h": 139.2
  },
  "luminance": 0.19999
}

Semantic roles & 50–950 ramp

primary
#398D1B
secondary
#9E46BD
accent
#3DEBBD
background
#F7FAF6
surface
#EEF5EB
border
#C9CFC6
text
#0A1005
muted
#7C7F7A

Preview Lab

Preview with #398D1B

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

Preview Lab → · Contrast checker → · Palette generator →

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