#1F7C2B#1F7C2B

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

Color values

HEX#1F7C2B
RGBrgb(31, 124, 43)
HSLhsl(128, 60%, 30%)
HSVhsv(128, 75%, 49%)
CMYKcmyk(75%, 0%, 65.3%, 51.4%)
CIE-LABlab(45.47, -43.95, 35.70)
CIE-LCHlch(45.47, 56.62, 140.91°)
OKLaboklab(51.54% -0.1187 0.0833)
OKLCHoklch(51.54% 0.145 144.9)
XYZxyz(8.2082, 14.8801, 4.7246)
Luminance0.1488 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7C2B #7C1F70
analogous
#417C1F #1F7C2B #1F7C59
triadic
#1F7C2B #2B1F7C #7C2B1F
tetradic
#1F7C2B #1F417C #7C1F70 #7C591F
square
#1F7C2B #1F417C #7C1F70 #7C591F
split-complementary
#1F7C2B #591F7C #7C1F41
monochromatic
#071A09 #134B1A #1F7C2B #2BAD3C #45D057

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F7C2B#FFFFFF#000000##FFFFFF
##1F7C2B1.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)
#7E7022
Deuteranopia (green-blind)
#736932
Tritanopia (blue-blind)
#00796B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #1f7c2b;
/* rgb */ color: rgb(31, 124, 43);
/* oklch */ color: oklch(51.5% 0.145 144.9);
Tailwind
colors: {
  custom: {
    50: '#6aa368',
    500: '#1f7c2b',
    950: '#000000',
  },
}
SCSS
$custom: #1f7c2b;
$custom-light: #6aa368;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7c2b",
  "rgb": {
    "r": 31,
    "g": 124,
    "b": 43
  },
  "hsl": {
    "h": 127.742,
    "s": 60,
    "l": 30.392
  },
  "oklch": {
    "l": 0.51535,
    "c": 0.14506,
    "h": 144.9
  },
  "luminance": 0.14881
}

Semantic roles & 50–950 ramp

primary
#1F7C2B
secondary
#AF48A2
accent
#45CFE3
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F06
muted
#7A7F7A

Preview Lab

Preview with #1F7C2B

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

Preview Lab → · Contrast checker → · Palette generator →

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