#1F7C2F#1F7C2F

#1F7C2F is a mid, vivid green. Relative luminance 0.149; OKLCH L 51.6% C 0.142 H 145.8°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#1F7C2F
RGBrgb(31, 124, 47)
HSLhsl(130, 60%, 30%)
HSVhsv(130, 75%, 49%)
CMYKcmyk(75%, 0%, 62.1%, 51.4%)
CIE-LABlab(45.51, -43.44, 33.82)
CIE-LCHlch(45.51, 55.05, 142.10°)
OKLaboklab(51.58% -0.1172 0.0797)
OKLCHoklch(51.58% 0.142 145.8)
XYZxyz(8.2852, 14.9109, 5.1302)
Luminance0.1491 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7C2F #7C1F6C
analogous
#3D7C1F #1F7C2F #1F7C5E
triadic
#1F7C2F #2F1F7C #7C2F1F
tetradic
#1F7C2F #1F3D7C #7C1F6C #7C5E1F
square
#1F7C2F #1F3D7C #7C1F6C #7C5E1F
split-complementary
#1F7C2F #5E1F7C #7C1F3D
monochromatic
#071A0A #134B1C #1F7C2F #2BAD42 #45D05D

Accessibility & contrast

On white

5.27
#1F7C2F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#1F7C2F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7C2F
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7C2F#FFFFFF#000000##FFFFFF
##1F7C2F1.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E7027
Deuteranopia (green-blind)
#736935
Tritanopia (blue-blind)
#00796B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #1f7c2f;
/* rgb */ color: rgb(31, 124, 47);
/* oklch */ color: oklch(51.6% 0.142 145.8);
Tailwind
colors: {
  custom: {
    50: '#6aa36a',
    500: '#1f7c2f',
    950: '#000000',
  },
}
SCSS
$custom: #1f7c2f;
$custom-light: #6aa36a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7c2f",
  "rgb": {
    "r": 31,
    "g": 124,
    "b": 47
  },
  "hsl": {
    "h": 130.323,
    "s": 60,
    "l": 30.392
  },
  "oklch": {
    "l": 0.51584,
    "c": 0.14172,
    "h": 145.8
  },
  "luminance": 0.14912
}

Semantic roles & 50–950 ramp

primary
#1F7C2F
secondary
#AF489D
accent
#45C8E3
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F07
muted
#7A7F7A

Preview Lab

Preview with #1F7C2F

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

Preview Lab → · Contrast checker → · Palette generator →

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