#398A1B#398A1B

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

Color values

HEX#398A1B
RGBrgb(57, 138, 27)
HSLhsl(104, 67%, 32%)
HSVhsv(104, 80%, 54%)
CMYKcmyk(58.7%, 0%, 80.4%, 45.9%)
CIE-LABlab(50.83, -44.61, 47.92)
CIE-LCHlch(50.83, 65.47, 132.95°)
OKLaboklab(56.14% -0.1229 0.1067)
OKLCHoklch(56.14% 0.163 139.1)
XYZxyz(10.9732, 19.1250, 4.1499)
Luminance0.1913 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#398A1B #6C1B8A
analogous
#708A1B #398A1B #1B8A35
triadic
#398A1B #1B398A #8A1B39
tetradic
#398A1B #1B708A #6C1B8A #8A351B
square
#398A1B #1B708A #6C1B8A #8A351B
split-complementary
#398A1B #351B8A #8A1B70
monochromatic
#0F2407 #245711 #398A1B #4EBD25 #6DDB45

Accessibility & contrast

On white

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

On black

4.83
#398A1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #398A1B
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##398A1B#FFFFFF#000000##000000
##398A1B1.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #398a1b;
/* rgb */ color: rgb(57, 138, 27);
/* oklch */ color: oklch(56.1% 0.163 139.1);
Tailwind
colors: {
  custom: {
    50: '#79ad61',
    500: '#398a1b',
    950: '#000000',
  },
}
SCSS
$custom: #398a1b;
$custom-light: #79ad61;
$custom-dark: #000000;
JSON
{
  "hex": "#398a1b",
  "rgb": {
    "r": 57,
    "g": 138,
    "b": 27
  },
  "hsl": {
    "h": 103.784,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.56142,
    "c": 0.16277,
    "h": 139.1
  },
  "luminance": 0.19126
}

Semantic roles & 50–950 ramp

primary
#398A1B
secondary
#9C45BC
accent
#3EEABC
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A1005
muted
#7C7F7A

Preview Lab

Preview with #398A1B

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

Preview Lab → · Contrast checker → · Palette generator →

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