#1F7F3D#1F7F3D

#1F7F3D is a mid, vivid green. Relative luminance 0.158; OKLCH L 52.6% C 0.133 H 149.2°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#1F7F3D
RGBrgb(31, 127, 61)
HSLhsl(139, 61%, 31%)
HSVhsv(139, 76%, 50%)
CMYKcmyk(75.6%, 0%, 52%, 50.2%)
CIE-LABlab(46.72, -42.48, 28.05)
CIE-LCHlch(46.72, 50.90, 146.56°)
OKLaboklab(52.64% -0.1143 0.068)
OKLCHoklch(52.64% 0.133 149.2)
XYZxyz(8.9960, 15.8059, 6.9907)
Luminance0.1581 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7F3D #7F1F61
analogous
#317F1F #1F7F3D #1F7F6D
triadic
#1F7F3D #3D1F7F #7F3D1F
tetradic
#1F7F3D #1F317F #7F1F61 #7F6D1F
square
#1F7F3D #1F317F #7F1F61 #7F6D1F
split-complementary
#1F7F3D #6D1F7F #7F1F31
monochromatic
#071D0E #134E25 #1F7F3D #2BB055 #46D272

Accessibility & contrast

On white

5.05
#1F7F3D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#1F7F3D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7F3D
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7F3D#FFFFFF#000000##FFFFFF
##1F7F3D1.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807437
Deuteranopia (green-blind)
#756C42
Tritanopia (blue-blind)
#007D70
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #1f7f3d;
/* rgb */ color: rgb(31, 127, 61);
/* oklch */ color: oklch(52.6% 0.133 149.2);
Tailwind
colors: {
  custom: {
    50: '#6aa574',
    500: '#1f7f3d',
    950: '#000000',
  },
}
SCSS
$custom: #1f7f3d;
$custom-light: #6aa574;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7f3d",
  "rgb": {
    "r": 31,
    "g": 127,
    "b": 61
  },
  "hsl": {
    "h": 138.75,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.52641,
    "c": 0.13297,
    "h": 149.2
  },
  "luminance": 0.15807
}

Semantic roles & 50–950 ramp

primary
#1F7F3D
secondary
#B24891
accent
#44B2E4
background
#F6FAF7
surface
#ECF4ED
border
#C7CEC8
text
#070F08
muted
#7A7F7B

Preview Lab

Preview with #1F7F3D

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

Preview Lab → · Contrast checker → · Palette generator →

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