#1F7F45#1F7F45

#1F7F45 is a mid, vivid green. Relative luminance 0.159; OKLCH L 52.8% C 0.125 H 152.0°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#1F7F45
RGBrgb(31, 127, 69)
HSLhsl(144, 61%, 31%)
HSVhsv(144, 76%, 50%)
CMYKcmyk(75.6%, 0%, 45.7%, 50.2%)
CIE-LABlab(46.84, -41.06, 23.85)
CIE-LCHlch(46.84, 47.49, 149.85°)
OKLaboklab(52.78% -0.1105 0.0588)
OKLCHoklch(52.78% 0.125 152)
XYZxyz(9.2278, 15.8987, 8.2115)
Luminance0.1590 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7F45 #7F1F59
analogous
#297F1F #1F7F45 #1F7F75
triadic
#1F7F45 #451F7F #7F451F
tetradic
#1F7F45 #1F297F #7F1F59 #7F751F
square
#1F7F45 #1F297F #7F1F59 #7F751F
split-complementary
#1F7F45 #751F7F #7F1F29
monochromatic
#071D10 #134E2A #1F7F45 #2BB060 #46D27E

Accessibility & contrast

On white

5.02
#1F7F45 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#1F7F45 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7F45
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7F45#FFFFFF#000000##FFFFFF
##1F7F451.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7441
Deuteranopia (green-blind)
#746C49
Tritanopia (blue-blind)
#007D71
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #1f7f45;
/* rgb */ color: rgb(31, 127, 69);
/* oklch */ color: oklch(52.8% 0.125 152.0);
Tailwind
colors: {
  custom: {
    50: '#6aa579',
    500: '#1f7f45',
    950: '#000000',
  },
}
SCSS
$custom: #1f7f45;
$custom-light: #6aa579;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7f45",
  "rgb": {
    "r": 31,
    "g": 127,
    "b": 69
  },
  "hsl": {
    "h": 143.75,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.52782,
    "c": 0.12518,
    "h": 152
  },
  "luminance": 0.159
}

Semantic roles & 50–950 ramp

primary
#1F7F45
secondary
#B24888
accent
#44A5E4
background
#F6FAF7
surface
#ECF4ED
border
#C7CEC8
text
#070F09
muted
#7A7F7B

Preview Lab

Preview with #1F7F45

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

Preview Lab → · Contrast checker → · Palette generator →

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