#1F7E2E#1F7E2E

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

Color values

HEX#1F7E2E
RGBrgb(31, 126, 46)
HSLhsl(129, 61%, 31%)
HSVhsv(129, 75%, 49%)
CMYKcmyk(75.4%, 0%, 63.5%, 50.6%)
CIE-LABlab(46.19, -44.30, 35.08)
CIE-LCHlch(46.19, 56.51, 141.62°)
OKLaboklab(52.14% -0.1196 0.0823)
OKLCHoklch(52.14% 0.145 145.4)
XYZxyz(8.5185, 15.4093, 5.1096)
Luminance0.1541 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7E2E #7E1F6F
analogous
#3F7E1F #1F7E2E #1F7E5D
triadic
#1F7E2E #2E1F7E #7E2E1F
tetradic
#1F7E2E #1F3F7E #7E1F6F #7E5D1F
square
#1F7E2E #1F3F7E #7E1F6F #7E5D1F
split-complementary
#1F7E2E #5D1F7E #7E1F3F
monochromatic
#071C0A #134D1C #1F7E2E #2BAF40 #46D15C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F7E2E#FFFFFF#000000##FFFFFF
##1F7E2E1.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)
#807225
Deuteranopia (green-blind)
#756A35
Tritanopia (blue-blind)
#007B6D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #1f7e2e;
/* rgb */ color: rgb(31, 126, 46);
/* oklch */ color: oklch(52.1% 0.145 145.4);
Tailwind
colors: {
  custom: {
    50: '#6aa46a',
    500: '#1f7e2e',
    950: '#000000',
  },
}
SCSS
$custom: #1f7e2e;
$custom-light: #6aa46a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7e2e",
  "rgb": {
    "r": 31,
    "g": 126,
    "b": 46
  },
  "hsl": {
    "h": 129.474,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.52142,
    "c": 0.14516,
    "h": 145.4
  },
  "luminance": 0.1541
}

Semantic roles & 50–950 ramp

primary
#1F7E2E
secondary
#B148A0
accent
#44CAE4
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F06
muted
#7A7F7A

Preview Lab

Preview with #1F7E2E

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

Preview Lab → · Contrast checker → · Palette generator →

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