#1F7E2D#1F7E2D

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

Color values

HEX#1F7E2D
RGBrgb(31, 126, 45)
HSLhsl(129, 61%, 31%)
HSVhsv(129, 75%, 49%)
CMYKcmyk(75.4%, 0%, 64.3%, 50.6%)
CIE-LABlab(46.18, -44.43, 35.55)
CIE-LCHlch(46.18, 56.90, 141.33°)
OKLaboklab(52.13% -0.1199 0.0832)
OKLCHoklch(52.13% 0.146 145.2)
XYZxyz(8.4990, 15.4015, 5.0070)
Luminance0.1540 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7E2D #7E1F70
analogous
#407E1F #1F7E2D #1F7E5C
triadic
#1F7E2D #2D1F7E #7E2D1F
tetradic
#1F7E2D #1F407E #7E1F70 #7E5C1F
square
#1F7E2D #1F407E #7E1F70 #7E5C1F
split-complementary
#1F7E2D #5C1F7E #7E1F40
monochromatic
#071C0A #134D1B #1F7E2D #2BAF3F #46D15A

Accessibility & contrast

On white

5.15
#1F7E2D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #1F7E2D
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7E2D#FFFFFF#000000##FFFFFF
##1F7E2D1.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807224
Deuteranopia (green-blind)
#756A34
Tritanopia (blue-blind)
#007B6D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #1f7e2d;
/* rgb */ color: rgb(31, 126, 45);
/* oklch */ color: oklch(52.1% 0.146 145.2);
Tailwind
colors: {
  custom: {
    50: '#6ba469',
    500: '#1f7e2d',
    950: '#000000',
  },
}
SCSS
$custom: #1f7e2d;
$custom-light: #6ba469;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7e2d",
  "rgb": {
    "r": 31,
    "g": 126,
    "b": 45
  },
  "hsl": {
    "h": 128.842,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.5213,
    "c": 0.14599,
    "h": 145.2
  },
  "luminance": 0.15402
}

Semantic roles & 50–950 ramp

primary
#1F7E2D
secondary
#B148A2
accent
#44CCE4
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F06
muted
#7A7F7A

Preview Lab

Preview with #1F7E2D

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

Preview Lab → · Contrast checker → · Palette generator →

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