#1F7947#1F7947

#1F7947 is a mid, moderate green. Relative luminance 0.144; OKLCH L 51.1% C 0.115 H 154.1°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#1F7947
RGBrgb(31, 121, 71)
HSLhsl(147, 59%, 30%)
HSVhsv(147, 74%, 47%)
CMYKcmyk(74.4%, 0%, 41.3%, 52.5%)
CIE-LABlab(44.83, -38.26, 20.10)
CIE-LCHlch(44.83, 43.22, 152.28°)
OKLaboklab(51.13% -0.1032 0.0501)
OKLCHoklch(51.13% 0.115 154.1)
XYZxyz(8.5390, 14.4200, 8.2933)
Luminance0.1442 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7947 #791F51
analogous
#24791F #1F7947 #1F7974
triadic
#1F7947 #471F79 #79471F
tetradic
#1F7947 #1F2479 #791F51 #79741F
square
#1F7947 #1F2479 #791F51 #79741F
split-complementary
#1F7947 #741F79 #791F24
monochromatic
#06180E #13482A #1F7947 #2BAA64 #43CF81

Accessibility & contrast

On white

5.41
#1F7947 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#1F7947 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7947
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7947#FFFFFF#000000##FFFFFF
##1F79471.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796F44
Deuteranopia (green-blind)
#6E674A
Tritanopia (blue-blind)
#00786C
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #1f7947;
/* rgb */ color: rgb(31, 121, 71);
/* oklch */ color: oklch(51.1% 0.115 154.1);
Tailwind
colors: {
  custom: {
    50: '#68a07a',
    500: '#1f7947',
    950: '#000000',
  },
}
SCSS
$custom: #1f7947;
$custom-light: #68a07a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7947",
  "rgb": {
    "r": 31,
    "g": 121,
    "b": 71
  },
  "hsl": {
    "h": 146.667,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.51133,
    "c": 0.11471,
    "h": 154.1
  },
  "luminance": 0.14421
}

Semantic roles & 50–950 ramp

primary
#1F7947
secondary
#AC4780
accent
#459DE2
background
#F6F9F7
surface
#EBF2ED
border
#C6CCC8
text
#070F09
muted
#7A7E7B

Preview Lab

Preview with #1F7947

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

Preview Lab → · Contrast checker → · Palette generator →

#1F7947 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva