#1F7A3F#1F7A3F

#1F7A3F is a mid, vivid green. Relative luminance 0.146; OKLCH L 51.3% C 0.124 H 150.6°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#1F7A3F
RGBrgb(31, 122, 63)
HSLhsl(141, 59%, 30%)
HSVhsv(141, 75%, 48%)
CMYKcmyk(74.6%, 0%, 48.4%, 52.2%)
CIE-LABlab(45.04, -40.19, 24.85)
CIE-LCHlch(45.04, 47.25, 148.27°)
OKLaboklab(51.26% -0.1082 0.0609)
OKLCHoklch(51.26% 0.124 150.6)
XYZxyz(8.4211, 14.5683, 7.0698)
Luminance0.1457 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7A3F #7A1F5A
analogous
#2C7A1F #1F7A3F #1F7A6D
triadic
#1F7A3F #3F1F7A #7A3F1F
tetradic
#1F7A3F #1F2C7A #7A1F5A #7A6D1F
square
#1F7A3F #1F2C7A #7A1F5A #7A6D1F
split-complementary
#1F7A3F #6D1F7A #7A1F2C
monochromatic
#06180D #134926 #1F7A3F #2BAB58 #44CF75

Accessibility & contrast

On white

5.37
#1F7A3F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#1F7A3F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7A3F
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7A3F#FFFFFF#000000##FFFFFF
##1F7A3F1.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6F3A
Deuteranopia (green-blind)
#706843
Tritanopia (blue-blind)
#00786C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #1f7a3f;
/* rgb */ color: rgb(31, 122, 63);
/* oklch */ color: oklch(51.3% 0.124 150.6);
Tailwind
colors: {
  custom: {
    50: '#69a175',
    500: '#1f7a3f',
    950: '#000000',
  },
}
SCSS
$custom: #1f7a3f;
$custom-light: #69a175;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7a3f",
  "rgb": {
    "r": 31,
    "g": 122,
    "b": 63
  },
  "hsl": {
    "h": 141.099,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.5126,
    "c": 0.1241,
    "h": 150.6
  },
  "luminance": 0.14569
}

Semantic roles & 50–950 ramp

primary
#1F7A3F
secondary
#AD478A
accent
#45ABE3
background
#F6FAF7
surface
#ECF3ED
border
#C7CDC8
text
#070F08
muted
#7A7F7B

Preview Lab

Preview with #1F7A3F

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

Preview Lab → · Contrast checker → · Palette generator →

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