#387E1F#387E1F

#387E1F is a mid, vivid green. Relative luminance 0.159; OKLCH L 52.8% C 0.146 H 138.9°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#387E1F
RGBrgb(56, 126, 31)
HSLhsl(104, 61%, 31%)
HSVhsv(104, 75%, 49%)
CMYKcmyk(55.6%, 0%, 75.4%, 50.6%)
CIE-LABlab(46.79, -39.93, 42.53)
CIE-LCHlch(46.79, 58.34, 133.20°)
OKLaboklab(52.8% -0.11 0.096)
OKLCHoklch(52.8% 0.146 138.9)
XYZxyz(9.3387, 15.8606, 3.8654)
Luminance0.1586 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#387E1F #651F7E
analogous
#677E1F #387E1F #1F7E36
triadic
#387E1F #1F387E #7E1F38
tetradic
#387E1F #1F677E #651F7E #7E361F
square
#387E1F #1F677E #651F7E #7E361F
split-complementary
#387E1F #361F7E #7E1F67
monochromatic
#0C1C07 #224D13 #387E1F #4EAF2B #6BD146

Accessibility & contrast

On white

5.03
#387E1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#387E1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #387E1F
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##387E1F#FFFFFF#000000##FFFFFF
##387E1F1.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#82730E
Deuteranopia (green-blind)
#796D29
Tritanopia (blue-blind)
#317A6C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #387e1f;
/* rgb */ color: rgb(56, 126, 31);
/* oklch */ color: oklch(52.8% 0.146 138.9);
Tailwind
colors: {
  custom: {
    50: '#77a461',
    500: '#387e1f',
    950: '#000000',
  },
}
SCSS
$custom: #387e1f;
$custom-light: #77a461;
$custom-dark: #000000;
JSON
{
  "hex": "#387e1f",
  "rgb": {
    "r": 56,
    "g": 126,
    "b": 31
  },
  "hsl": {
    "h": 104.211,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.52804,
    "c": 0.14603,
    "h": 138.9
  },
  "luminance": 0.15861
}

Semantic roles & 50–950 ramp

primary
#387E1F
secondary
#9548B1
accent
#44E4BA
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#090F05
muted
#7B7F7A

Preview Lab

Preview with #387E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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