#1F7A2F#1F7A2F

#1F7A2F is a mid, vivid green. Relative luminance 0.144; OKLCH L 51.0% C 0.139 H 145.9°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#1F7A2F
RGBrgb(31, 122, 47)
HSLhsl(131, 59%, 30%)
HSVhsv(131, 75%, 48%)
CMYKcmyk(74.6%, 0%, 61.5%, 52.2%)
CIE-LABlab(44.82, -42.70, 33.02)
CIE-LCHlch(44.82, 53.98, 142.29°)
OKLaboklab(51.01% -0.1152 0.078)
OKLCHoklch(51.01% 0.139 145.9)
XYZxyz(8.0371, 14.4147, 5.0475)
Luminance0.1442 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7A2F #7A1F6A
analogous
#3D7A1F #1F7A2F #1F7A5C
triadic
#1F7A2F #2F1F7A #7A2F1F
tetradic
#1F7A2F #1F3D7A #7A1F6A #7A5C1F
square
#1F7A2F #1F3D7A #7A1F6A #7A5C1F
split-complementary
#1F7A2F #5C1F7A #7A1F3D
monochromatic
#061809 #13491C #1F7A2F #2BAB42 #44CF5C

Accessibility & contrast

On white

5.41
#1F7A2F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#1F7A2F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7A2F
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7A2F#FFFFFF#000000##FFFFFF
##1F7A2F1.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6E27
Deuteranopia (green-blind)
#716735
Tritanopia (blue-blind)
#00776A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #1f7a2f;
/* rgb */ color: rgb(31, 122, 47);
/* oklch */ color: oklch(51.0% 0.139 145.9);
Tailwind
colors: {
  custom: {
    50: '#69a16a',
    500: '#1f7a2f',
    950: '#000000',
  },
}
SCSS
$custom: #1f7a2f;
$custom-light: #69a16a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7a2f",
  "rgb": {
    "r": 31,
    "g": 122,
    "b": 47
  },
  "hsl": {
    "h": 130.549,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.51012,
    "c": 0.1391,
    "h": 145.9
  },
  "luminance": 0.14416
}

Semantic roles & 50–950 ramp

primary
#1F7A2F
secondary
#AD479B
accent
#45C7E3
background
#F6FAF6
surface
#ECF3EB
border
#C7CDC6
text
#070F06
muted
#7A7F7A

Preview Lab

Preview with #1F7A2F

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

Preview Lab → · Contrast checker → · Palette generator →

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