#1F7F2E#1F7F2E

#1F7F2E is a mid, vivid green. Relative luminance 0.157; OKLCH L 52.4% C 0.146 H 145.4°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#1F7F2E
RGBrgb(31, 127, 46)
HSLhsl(129, 61%, 31%)
HSVhsv(129, 76%, 50%)
CMYKcmyk(75.6%, 0%, 63.8%, 50.2%)
CIE-LABlab(46.53, -44.66, 35.48)
CIE-LCHlch(46.53, 57.04, 141.54°)
OKLaboklab(52.43% -0.1205 0.0832)
OKLCHoklch(52.43% 0.146 145.4)
XYZxyz(8.6470, 15.6663, 5.1524)
Luminance0.1567 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7F2E #7F1F70
analogous
#407F1F #1F7F2E #1F7F5E
triadic
#1F7F2E #2E1F7F #7F2E1F
tetradic
#1F7F2E #1F407F #7F1F70 #7F5E1F
square
#1F7F2E #1F407F #7F1F70 #7F5E1F
split-complementary
#1F7F2E #5E1F7F #7F1F40
monochromatic
#071D0A #134E1C #1F7F2E #2BB040 #46D25C

Accessibility & contrast

On white

5.08
#1F7F2E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#1F7F2E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7F2E
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7F2E#FFFFFF#000000##FFFFFF
##1F7F2E1.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817325
Deuteranopia (green-blind)
#766B35
Tritanopia (blue-blind)
#007C6E
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #1f7f2e;
/* rgb */ color: rgb(31, 127, 46);
/* oklch */ color: oklch(52.4% 0.146 145.4);
Tailwind
colors: {
  custom: {
    50: '#6ba56a',
    500: '#1f7f2e',
    950: '#000000',
  },
}
SCSS
$custom: #1f7f2e;
$custom-light: #6ba56a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7f2e",
  "rgb": {
    "r": 31,
    "g": 127,
    "b": 46
  },
  "hsl": {
    "h": 129.375,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.52427,
    "c": 0.14645,
    "h": 145.4
  },
  "luminance": 0.15667
}

Semantic roles & 50–950 ramp

primary
#1F7F2E
secondary
#B248A1
accent
#44CBE4
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F07
muted
#7A7F7A

Preview Lab

Preview with #1F7F2E

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

Preview Lab → · Contrast checker → · Palette generator →

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