#1F7C4A#1F7C4A

#1F7C4A is a mid, moderate green. Relative luminance 0.152; OKLCH L 52.0% C 0.116 H 154.8°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#1F7C4A
RGBrgb(31, 124, 74)
HSLhsl(148, 60%, 30%)
HSVhsv(148, 75%, 49%)
CMYKcmyk(75%, 0%, 40.3%, 51.4%)
CIE-LABlab(45.91, -38.88, 19.82)
CIE-LCHlch(45.91, 43.64, 152.99°)
OKLaboklab(52.04% -0.1049 0.0495)
OKLCHoklch(52.04% 0.116 154.8)
XYZxyz(9.0079, 15.2000, 8.9364)
Luminance0.1520 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7C4A #7C1F51
analogous
#227C1F #1F7C4A #1F7C78
triadic
#1F7C4A #4A1F7C #7C4A1F
tetradic
#1F7C4A #1F227C #7C1F51 #7C781F
square
#1F7C4A #1F227C #7C1F51 #7C781F
split-complementary
#1F7C4A #781F7C #7C1F22
monochromatic
#071A10 #134B2D #1F7C4A #2BAD67 #45D085

Accessibility & contrast

On white

5.20
#1F7C4A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#1F7C4A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7C4A
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7C4A#FFFFFF#000000##FFFFFF
##1F7C4A1.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C7247
Deuteranopia (green-blind)
#70694D
Tritanopia (blue-blind)
#007B6F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #1f7c4a;
/* rgb */ color: rgb(31, 124, 74);
/* oklch */ color: oklch(52.0% 0.116 154.8);
Tailwind
colors: {
  custom: {
    50: '#69a37d',
    500: '#1f7c4a',
    950: '#000000',
  },
}
SCSS
$custom: #1f7c4a;
$custom-light: #69a37d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7c4a",
  "rgb": {
    "r": 31,
    "g": 124,
    "b": 74
  },
  "hsl": {
    "h": 147.742,
    "s": 60,
    "l": 30.392
  },
  "oklch": {
    "l": 0.52039,
    "c": 0.116,
    "h": 154.8
  },
  "luminance": 0.15201
}

Semantic roles & 50–950 ramp

primary
#1F7C4A
secondary
#AF487F
accent
#459AE3
background
#F6FAF7
surface
#ECF4EE
border
#C7CEC9
text
#070F09
muted
#7A7F7B

Preview Lab

Preview with #1F7C4A

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

Preview Lab → · Contrast checker → · Palette generator →

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