#1F7F2A#1F7F2A

#1F7F2A is a mid, vivid green. Relative luminance 0.156; OKLCH L 52.4% C 0.150 H 144.6°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#1F7F2A
RGBrgb(31, 127, 42)
HSLhsl(127, 61%, 31%)
HSVhsv(127, 76%, 50%)
CMYKcmyk(75.6%, 0%, 66.9%, 50.2%)
CIE-LABlab(46.49, -45.15, 37.31)
CIE-LCHlch(46.49, 58.57, 140.43°)
OKLaboklab(52.38% -0.122 0.0867)
OKLCHoklch(52.38% 0.15 144.6)
XYZxyz(8.5718, 15.6362, 4.7564)
Luminance0.1564 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7F2A #7F1F74
analogous
#447F1F #1F7F2A #1F7F5A
triadic
#1F7F2A #2A1F7F #7F2A1F
tetradic
#1F7F2A #1F447F #7F1F74 #7F5A1F
square
#1F7F2A #1F447F #7F1F74 #7F5A1F
split-complementary
#1F7F2A #5A1F7F #7F1F44
monochromatic
#071D09 #134E1A #1F7F2A #2BB03A #46D256

Accessibility & contrast

On white

5.09
#1F7F2A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #1F7F2A
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7F2A#FFFFFF#000000##FFFFFF
##1F7F2A1.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817320
Deuteranopia (green-blind)
#766B32
Tritanopia (blue-blind)
#007C6D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #1f7f2a;
/* rgb */ color: rgb(31, 127, 42);
/* oklch */ color: oklch(52.4% 0.150 144.6);
Tailwind
colors: {
  custom: {
    50: '#6ba567',
    500: '#1f7f2a',
    950: '#000000',
  },
}
SCSS
$custom: #1f7f2a;
$custom-light: #6ba567;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7f2a",
  "rgb": {
    "r": 31,
    "g": 127,
    "b": 42
  },
  "hsl": {
    "h": 126.875,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.52381,
    "c": 0.14966,
    "h": 144.6
  },
  "luminance": 0.15637
}

Semantic roles & 50–950 ramp

primary
#1F7F2A
secondary
#B248A6
accent
#44D2E4
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F06
muted
#7A7F7A

Preview Lab

Preview with #1F7F2A

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

Preview Lab → · Contrast checker → · Palette generator →

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