#1F7E45#1F7E45

#1F7E45 is a mid, vivid green. Relative luminance 0.156; OKLCH L 52.5% C 0.124 H 152.2°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#1F7E45
RGBrgb(31, 126, 69)
HSLhsl(144, 61%, 31%)
HSVhsv(144, 75%, 49%)
CMYKcmyk(75.4%, 0%, 45.2%, 50.6%)
CIE-LABlab(46.50, -40.67, 23.41)
CIE-LCHlch(46.50, 46.92, 150.08°)
OKLaboklab(52.5% -0.1095 0.0578)
OKLCHoklch(52.5% 0.124 152.2)
XYZxyz(9.0993, 15.6416, 8.1687)
Luminance0.1564 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7E45 #7E1F58
analogous
#287E1F #1F7E45 #1F7E74
triadic
#1F7E45 #451F7E #7E451F
tetradic
#1F7E45 #1F287E #7E1F58 #7E741F
square
#1F7E45 #1F287E #7E1F58 #7E741F
split-complementary
#1F7E45 #741F7E #7E1F28
monochromatic
#071C0F #134D2A #1F7E45 #2BAF60 #46D17E

Accessibility & contrast

On white

5.09
#1F7E45 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#1F7E45 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7E45
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7E45#FFFFFF#000000##FFFFFF
##1F7E451.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E7341
Deuteranopia (green-blind)
#736B49
Tritanopia (blue-blind)
#007C70
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #1f7e45;
/* rgb */ color: rgb(31, 126, 69);
/* oklch */ color: oklch(52.5% 0.124 152.2);
Tailwind
colors: {
  custom: {
    50: '#6aa479',
    500: '#1f7e45',
    950: '#000000',
  },
}
SCSS
$custom: #1f7e45;
$custom-light: #6aa479;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7e45",
  "rgb": {
    "r": 31,
    "g": 126,
    "b": 69
  },
  "hsl": {
    "h": 144,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.52501,
    "c": 0.12379,
    "h": 152.2
  },
  "luminance": 0.15643
}

Semantic roles & 50–950 ramp

primary
#1F7E45
secondary
#B14887
accent
#44A4E4
background
#F6FAF7
surface
#ECF4ED
border
#C7CEC8
text
#070F09
muted
#7A7F7B

Preview Lab

Preview with #1F7E45

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

Preview Lab → · Contrast checker → · Palette generator →

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