#1F7F2D#1F7F2D

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

Color values

HEX#1F7F2D
RGBrgb(31, 127, 45)
HSLhsl(129, 61%, 31%)
HSVhsv(129, 76%, 50%)
CMYKcmyk(75.6%, 0%, 64.6%, 50.2%)
CIE-LABlab(46.52, -44.79, 35.94)
CIE-LCHlch(46.52, 57.43, 141.25°)
OKLaboklab(52.42% -0.1209 0.0841)
OKLCHoklch(52.42% 0.147 145.2)
XYZxyz(8.6275, 15.6585, 5.0498)
Luminance0.1566 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7F2D #7F1F71
analogous
#417F1F #1F7F2D #1F7F5D
triadic
#1F7F2D #2D1F7F #7F2D1F
tetradic
#1F7F2D #1F417F #7F1F71 #7F5D1F
square
#1F7F2D #1F417F #7F1F71 #7F5D1F
split-complementary
#1F7F2D #5D1F7F #7F1F41
monochromatic
#071D0A #134E1C #1F7F2D #2BB03E #46D25B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F7F2D#FFFFFF#000000##FFFFFF
##1F7F2D1.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)
#817324
Deuteranopia (green-blind)
#766B34
Tritanopia (blue-blind)
#007C6E
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #1f7f2d;
/* rgb */ color: rgb(31, 127, 45);
/* oklch */ color: oklch(52.4% 0.147 145.2);
Tailwind
colors: {
  custom: {
    50: '#6ba569',
    500: '#1f7f2d',
    950: '#000000',
  },
}
SCSS
$custom: #1f7f2d;
$custom-light: #6ba569;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7f2d",
  "rgb": {
    "r": 31,
    "g": 127,
    "b": 45
  },
  "hsl": {
    "h": 128.75,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.52415,
    "c": 0.14727,
    "h": 145.2
  },
  "luminance": 0.1566
}

Semantic roles & 50–950 ramp

primary
#1F7F2D
secondary
#B248A3
accent
#44CDE4
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F06
muted
#7A7F7A

Preview Lab

Preview with #1F7F2D

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

Preview Lab → · Contrast checker → · Palette generator →

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