#1F7C2E#1F7C2E

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

Color values

HEX#1F7C2E
RGBrgb(31, 124, 46)
HSLhsl(130, 60%, 30%)
HSVhsv(130, 75%, 49%)
CMYKcmyk(75%, 0%, 62.9%, 51.4%)
CIE-LABlab(45.50, -43.57, 34.30)
CIE-LCHlch(45.50, 55.45, 141.79°)
OKLaboklab(51.57% -0.1176 0.0806)
OKLCHoklch(51.57% 0.143 145.6)
XYZxyz(8.2653, 14.9029, 5.0252)
Luminance0.1490 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7C2E #7C1F6D
analogous
#3F7C1F #1F7C2E #1F7C5C
triadic
#1F7C2E #2E1F7C #7C2E1F
tetradic
#1F7C2E #1F3F7C #7C1F6D #7C5C1F
square
#1F7C2E #1F3F7C #7C1F6D #7C5C1F
split-complementary
#1F7C2E #5C1F7C #7C1F3F
monochromatic
#071A0A #134B1C #1F7C2E #2BAD40 #45D05B

Accessibility & contrast

On white

5.28
#1F7C2E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #1F7C2E
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7C2E#FFFFFF#000000##FFFFFF
##1F7C2E1.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f7c2e;
/* rgb */ color: rgb(31, 124, 46);
/* oklch */ color: oklch(51.6% 0.143 145.6);
Tailwind
colors: {
  custom: {
    50: '#6aa36a',
    500: '#1f7c2e',
    950: '#000000',
  },
}
SCSS
$custom: #1f7c2e;
$custom-light: #6aa36a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7c2e",
  "rgb": {
    "r": 31,
    "g": 124,
    "b": 46
  },
  "hsl": {
    "h": 129.677,
    "s": 60,
    "l": 30.392
  },
  "oklch": {
    "l": 0.51571,
    "c": 0.14257,
    "h": 145.6
  },
  "luminance": 0.14904
}

Semantic roles & 50–950 ramp

primary
#1F7C2E
secondary
#AF489F
accent
#45CAE3
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F06
muted
#7A7F7A

Preview Lab

Preview with #1F7C2E

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

Preview Lab → · Contrast checker → · Palette generator →

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