#1F7D1E#1F7D1E

#1F7D1E is a mid, vivid green. Relative luminance 0.151; OKLCH L 51.7% C 0.156 H 142.8°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#1F7D1E
RGBrgb(31, 125, 30)
HSLhsl(119, 61%, 30%)
HSVhsv(119, 76%, 49%)
CMYKcmyk(75.2%, 0%, 76%, 51%)
CIE-LABlab(45.70, -45.64, 41.58)
CIE-LCHlch(45.70, 61.74, 137.67°)
OKLaboklab(51.7% -0.1239 0.0941)
OKLCHoklch(51.7% 0.156 142.8)
XYZxyz(8.1325, 15.0514, 3.7046)
Luminance0.1505 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7D1E #7C1E7D
analogous
#4F7D1E #1F7D1E #1E7D4C
triadic
#1F7D1E #1E1F7D #7D1E1F
tetradic
#1F7D1E #1E4F7D #7C1E7D #7D4C1E
square
#1F7D1E #1E4F7D #7C1E7D #7D4C1E
split-complementary
#1F7D1E #4C1E7D #7D1E4F
monochromatic
#071A06 #134C12 #1F7D1E #2BAE2A #45D243

Accessibility & contrast

On white

5.24
#1F7D1E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#1F7D1E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7D1E
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7D1E#FFFFFF#000000##FFFFFF
##1F7D1E1.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#80710C
Deuteranopia (green-blind)
#756928
Tritanopia (blue-blind)
#00796B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #1f7d1e;
/* rgb */ color: rgb(31, 125, 30);
/* oklch */ color: oklch(51.7% 0.156 142.8);
Tailwind
colors: {
  custom: {
    50: '#6ba460',
    500: '#1f7d1e',
    950: '#000000',
  },
}
SCSS
$custom: #1f7d1e;
$custom-light: #6ba460;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7d1e",
  "rgb": {
    "r": 31,
    "g": 125,
    "b": 30
  },
  "hsl": {
    "h": 119.368,
    "s": 61.29,
    "l": 30.392
  },
  "oklch": {
    "l": 0.51695,
    "c": 0.15563,
    "h": 142.8
  },
  "luminance": 0.15052
}

Semantic roles & 50–950 ramp

primary
#1F7D1E
secondary
#AF46B0
accent
#43E4E3
background
#F6FAF5
surface
#ECF4EA
border
#C7CEC6
text
#080F05
muted
#7A7F79

Preview Lab

Preview with #1F7D1E

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

Preview Lab → · Contrast checker → · Palette generator →

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