#1F7E2F#1F7E2F

#1F7E2F is a mid, vivid green. Relative luminance 0.154; OKLCH L 52.2% C 0.144 H 145.7°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#1F7E2F
RGBrgb(31, 126, 47)
HSLhsl(130, 61%, 31%)
HSVhsv(130, 75%, 49%)
CMYKcmyk(75.4%, 0%, 62.7%, 50.6%)
CIE-LABlab(46.20, -44.17, 34.61)
CIE-LCHlch(46.20, 56.12, 141.92°)
OKLaboklab(52.15% -0.1192 0.0814)
OKLCHoklch(52.15% 0.144 145.7)
XYZxyz(8.5384, 15.4173, 5.2146)
Luminance0.1542 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7E2F #7E1F6E
analogous
#3E7E1F #1F7E2F #1F7E5E
triadic
#1F7E2F #2F1F7E #7E2F1F
tetradic
#1F7E2F #1F3E7E #7E1F6E #7E5E1F
square
#1F7E2F #1F3E7E #7E1F6E #7E5E1F
split-complementary
#1F7E2F #5E1F7E #7E1F3E
monochromatic
#071C0A #134D1D #1F7E2F #2BAF41 #46D15D

Accessibility & contrast

On white

5.14
#1F7E2F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#1F7E2F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7E2F
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7E2F#FFFFFF#000000##FFFFFF
##1F7E2F1.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807226
Deuteranopia (green-blind)
#756A36
Tritanopia (blue-blind)
#007B6D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #1f7e2f;
/* rgb */ color: rgb(31, 126, 47);
/* oklch */ color: oklch(52.2% 0.144 145.7);
Tailwind
colors: {
  custom: {
    50: '#6aa46a',
    500: '#1f7e2f',
    950: '#000000',
  },
}
SCSS
$custom: #1f7e2f;
$custom-light: #6aa46a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7e2f",
  "rgb": {
    "r": 31,
    "g": 126,
    "b": 47
  },
  "hsl": {
    "h": 130.105,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.52155,
    "c": 0.14432,
    "h": 145.7
  },
  "luminance": 0.15418
}

Semantic roles & 50–950 ramp

primary
#1F7E2F
secondary
#B1489F
accent
#44C9E4
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F07
muted
#7A7F7A

Preview Lab

Preview with #1F7E2F

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

Preview Lab → · Contrast checker → · Palette generator →

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