#1F7F2C#1F7F2C

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

Color values

HEX#1F7F2C
RGBrgb(31, 127, 44)
HSLhsl(128, 61%, 31%)
HSVhsv(128, 76%, 50%)
CMYKcmyk(75.6%, 0%, 65.4%, 50.2%)
CIE-LABlab(46.51, -44.91, 36.40)
CIE-LCHlch(46.51, 57.81, 140.97°)
OKLaboklab(52.4% -0.1213 0.0849)
OKLCHoklch(52.4% 0.148 145)
XYZxyz(8.6085, 15.6509, 4.9496)
Luminance0.1565 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7F2C #7F1F72
analogous
#427F1F #1F7F2C #1F7F5C
triadic
#1F7F2C #2C1F7F #7F2C1F
tetradic
#1F7F2C #1F427F #7F1F72 #7F5C1F
square
#1F7F2C #1F427F #7F1F72 #7F5C1F
split-complementary
#1F7F2C #5C1F7F #7F1F42
monochromatic
#071D0A #134E1B #1F7F2C #2BB03D #46D259

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F7F2C#FFFFFF#000000##FFFFFF
##1F7F2C1.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)
#817322
Deuteranopia (green-blind)
#766B33
Tritanopia (blue-blind)
#007C6E
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #1f7f2c;
/* rgb */ color: rgb(31, 127, 44);
/* oklch */ color: oklch(52.4% 0.148 145.0);
Tailwind
colors: {
  custom: {
    50: '#6ba569',
    500: '#1f7f2c',
    950: '#000000',
  },
}
SCSS
$custom: #1f7f2c;
$custom-light: #6ba569;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7f2c",
  "rgb": {
    "r": 31,
    "g": 127,
    "b": 44
  },
  "hsl": {
    "h": 128.125,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.52404,
    "c": 0.14807,
    "h": 145
  },
  "luminance": 0.15652
}

Semantic roles & 50–950 ramp

primary
#1F7F2C
secondary
#B248A4
accent
#44CEE4
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F06
muted
#7A7F7A

Preview Lab

Preview with #1F7F2C

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

Preview Lab → · Contrast checker → · Palette generator →

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