#387F1F#387F1F

#387F1F is a mid, vivid green. Relative luminance 0.161; OKLCH L 53.1% C 0.147 H 139.0°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#387F1F
RGBrgb(56, 127, 31)
HSLhsl(104, 61%, 31%)
HSVhsv(104, 76%, 50%)
CMYKcmyk(55.9%, 0%, 75.6%, 50.2%)
CIE-LABlab(47.13, -40.33, 42.87)
CIE-LCHlch(47.13, 58.86, 133.25°)
OKLaboklab(53.08% -0.1111 0.0967)
OKLCHoklch(53.08% 0.147 139)
XYZxyz(9.4672, 16.1177, 3.9082)
Luminance0.1612 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#387F1F #661F7F
analogous
#687F1F #387F1F #1F7F36
triadic
#387F1F #1F387F #7F1F38
tetradic
#387F1F #1F687F #661F7F #7F361F
square
#387F1F #1F687F #661F7F #7F361F
split-complementary
#387F1F #361F7F #7F1F68
monochromatic
#0D1D07 #224E13 #387F1F #4EB02B #6BD246

Accessibility & contrast

On white

4.97
#387F1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#387F1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #387F1F
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##387F1F#FFFFFF#000000##FFFFFF
##387F1F1.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#83730D
Deuteranopia (green-blind)
#7A6E29
Tritanopia (blue-blind)
#317B6C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #387f1f;
/* rgb */ color: rgb(56, 127, 31);
/* oklch */ color: oklch(53.1% 0.147 139.0);
Tailwind
colors: {
  custom: {
    50: '#77a561',
    500: '#387f1f',
    950: '#000000',
  },
}
SCSS
$custom: #387f1f;
$custom-light: #77a561;
$custom-dark: #000000;
JSON
{
  "hex": "#387f1f",
  "rgb": {
    "r": 56,
    "g": 127,
    "b": 31
  },
  "hsl": {
    "h": 104.375,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.53083,
    "c": 0.14732,
    "h": 139
  },
  "luminance": 0.16118
}

Semantic roles & 50–950 ramp

primary
#387F1F
secondary
#9648B2
accent
#44E4BA
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#090F05
muted
#7B7F7A

Preview Lab

Preview with #387F1F

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

Preview Lab → · Contrast checker → · Palette generator →

#387F1F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva