#1F7F2F#1F7F2F

#1F7F2F is a mid, vivid green. Relative luminance 0.157; OKLCH L 52.4% C 0.146 H 145.6°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#1F7F2F
RGBrgb(31, 127, 47)
HSLhsl(130, 61%, 31%)
HSVhsv(130, 76%, 50%)
CMYKcmyk(75.6%, 0%, 63%, 50.2%)
CIE-LABlab(46.54, -44.54, 35.01)
CIE-LCHlch(46.54, 56.65, 141.83°)
OKLaboklab(52.44% -0.1202 0.0823)
OKLCHoklch(52.44% 0.146 145.6)
XYZxyz(8.6669, 15.6743, 5.2575)
Luminance0.1568 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7F2F #7F1F6F
analogous
#3F7F1F #1F7F2F #1F7F5F
triadic
#1F7F2F #2F1F7F #7F2F1F
tetradic
#1F7F2F #1F3F7F #7F1F6F #7F5F1F
square
#1F7F2F #1F3F7F #7F1F6F #7F5F1F
split-complementary
#1F7F2F #5F1F7F #7F1F3F
monochromatic
#071D0B #134E1D #1F7F2F #2BB041 #46D25E

Accessibility & contrast

On white

5.08
#1F7F2F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#1F7F2F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7F2F
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7F2F#FFFFFF#000000##FFFFFF
##1F7F2F1.005.084.145.08
#FFFFFF5.081.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817326
Deuteranopia (green-blind)
#766B36
Tritanopia (blue-blind)
#007C6E
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #1f7f2f;
/* rgb */ color: rgb(31, 127, 47);
/* oklch */ color: oklch(52.4% 0.146 145.6);
Tailwind
colors: {
  custom: {
    50: '#6ba56a',
    500: '#1f7f2f',
    950: '#000000',
  },
}
SCSS
$custom: #1f7f2f;
$custom-light: #6ba56a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7f2f",
  "rgb": {
    "r": 31,
    "g": 127,
    "b": 47
  },
  "hsl": {
    "h": 130,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.5244,
    "c": 0.14562,
    "h": 145.6
  },
  "luminance": 0.15675
}

Semantic roles & 50–950 ramp

primary
#1F7F2F
secondary
#B248A0
accent
#44C9E4
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F07
muted
#7A7F7A

Preview Lab

Preview with #1F7F2F

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

Preview Lab → · Contrast checker → · Palette generator →

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