#398C1B#398C1B

#398C1B is a mid, vivid green. Relative luminance 0.197; OKLCH L 56.7% C 0.165 H 139.2°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#398C1B
RGBrgb(57, 140, 27)
HSLhsl(104, 68%, 33%)
HSVhsv(104, 81%, 55%)
CMYKcmyk(59.3%, 0%, 80.7%, 45.1%)
CIE-LABlab(51.50, -45.37, 48.56)
CIE-LCHlch(51.50, 66.45, 133.05°)
OKLaboklab(56.69% -0.125 0.108)
OKLCHoklch(56.69% 0.165 139.2)
XYZxyz(11.2628, 19.7042, 4.2465)
Luminance0.1971 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#398C1B #6E1B8C
analogous
#718C1B #398C1B #1B8C36
triadic
#398C1B #1B398C #8C1B39
tetradic
#398C1B #1B718C #6E1B8C #8C361B
square
#398C1B #1B718C #6E1B8C #8C361B
split-complementary
#398C1B #361B8C #8C1B71
monochromatic
#0F2507 #245911 #398C1B #4EBF25 #6EDB46

Accessibility & contrast

On white

4.25
#398C1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#398C1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #398C1B
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##398C1B#FFFFFF#000000##000000
##398C1B1.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F00
Deuteranopia (green-blind)
#867828
Tritanopia (blue-blind)
#308777
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #398c1b;
/* rgb */ color: rgb(57, 140, 27);
/* oklch */ color: oklch(56.7% 0.165 139.2);
Tailwind
colors: {
  custom: {
    50: '#7aae61',
    500: '#398c1b',
    950: '#000000',
  },
}
SCSS
$custom: #398c1b;
$custom-light: #7aae61;
$custom-dark: #000000;
JSON
{
  "hex": "#398c1b",
  "rgb": {
    "r": 57,
    "g": 140,
    "b": 27
  },
  "hsl": {
    "h": 104.071,
    "s": 67.665,
    "l": 32.745
  },
  "oklch": {
    "l": 0.56694,
    "c": 0.16518,
    "h": 139.2
  },
  "luminance": 0.19705
}

Semantic roles & 50–950 ramp

primary
#398C1B
secondary
#9D46BD
accent
#3DEBBD
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A1005
muted
#7C7F7A

Preview Lab

Preview with #398C1B

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

Preview Lab → · Contrast checker → · Palette generator →

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