#1F7E2A#1F7E2A

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

Color values

HEX#1F7E2A
RGBrgb(31, 126, 42)
HSLhsl(127, 61%, 31%)
HSVhsv(127, 75%, 49%)
CMYKcmyk(75.4%, 0%, 66.7%, 50.6%)
CIE-LABlab(46.15, -44.79, 36.93)
CIE-LCHlch(46.15, 58.05, 140.49°)
OKLaboklab(52.1% -0.121 0.0859)
OKLCHoklch(52.1% 0.148 144.7)
XYZxyz(8.4433, 15.3792, 4.7135)
Luminance0.1538 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7E2A #7E1F73
analogous
#437E1F #1F7E2A #1F7E59
triadic
#1F7E2A #2A1F7E #7E2A1F
tetradic
#1F7E2A #1F437E #7E1F73 #7E591F
square
#1F7E2A #1F437E #7E1F73 #7E591F
split-complementary
#1F7E2A #591F7E #7E1F43
monochromatic
#071C09 #134D1A #1F7E2A #2BAF3A #46D156

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F7E2A#FFFFFF#000000##FFFFFF
##1F7E2A1.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)
#807220
Deuteranopia (green-blind)
#756A31
Tritanopia (blue-blind)
#007B6C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #1f7e2a;
/* rgb */ color: rgb(31, 126, 42);
/* oklch */ color: oklch(52.1% 0.148 144.7);
Tailwind
colors: {
  custom: {
    50: '#6ba467',
    500: '#1f7e2a',
    950: '#000000',
  },
}
SCSS
$custom: #1f7e2a;
$custom-light: #6ba467;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7e2a",
  "rgb": {
    "r": 31,
    "g": 126,
    "b": 42
  },
  "hsl": {
    "h": 126.947,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.52096,
    "c": 0.1484,
    "h": 144.7
  },
  "luminance": 0.1538
}

Semantic roles & 50–950 ramp

primary
#1F7E2A
secondary
#B148A5
accent
#44D1E4
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F06
muted
#7A7F7A

Preview Lab

Preview with #1F7E2A

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

Preview Lab → · Contrast checker → · Palette generator →

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