#1F7D1C#1F7D1C

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

Color values

HEX#1F7D1C
RGBrgb(31, 125, 28)
HSLhsl(118, 63%, 30%)
HSVhsv(118, 78%, 49%)
CMYKcmyk(75.2%, 0%, 77.6%, 51%)
CIE-LABlab(45.69, -45.81, 42.32)
CIE-LCHlch(45.69, 62.37, 137.26°)
OKLaboklab(51.68% -0.1245 0.0954)
OKLCHoklch(51.68% 0.157 142.5)
XYZxyz(8.1078, 15.0415, 3.5744)
Luminance0.1504 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7D1C #7A1C7D
analogous
#507D1C #1F7D1C #1C7D49
triadic
#1F7D1C #1C1F7D #7D1C1F
tetradic
#1F7D1C #1C507D #7A1C7D #7D491C
square
#1F7D1C #1C507D #7A1C7D #7D491C
split-complementary
#1F7D1C #491C7D #7D1C50
monochromatic
#061906 #134B11 #1F7D1C #2BAF27 #44D43F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F7D1C#FFFFFF#000000##FFFFFF
##1F7D1C1.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)
#807108
Deuteranopia (green-blind)
#756927
Tritanopia (blue-blind)
#00796A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #1f7d1c;
/* rgb */ color: rgb(31, 125, 28);
/* oklch */ color: oklch(51.7% 0.157 142.5);
Tailwind
colors: {
  custom: {
    50: '#6ba45f',
    500: '#1f7d1c',
    950: '#000000',
  },
}
SCSS
$custom: #1f7d1c;
$custom-light: #6ba45f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7d1c",
  "rgb": {
    "r": 31,
    "g": 125,
    "b": 28
  },
  "hsl": {
    "h": 118.144,
    "s": 63.399,
    "l": 30
  },
  "oklch": {
    "l": 0.51679,
    "c": 0.15684,
    "h": 142.5
  },
  "luminance": 0.15042
}

Semantic roles & 50–950 ramp

primary
#1F7D1C
secondary
#AD44B1
accent
#41E6E1
background
#F6FAF5
surface
#ECF4EA
border
#C7CEC6
text
#080F05
muted
#7A7F79

Preview Lab

Preview with #1F7D1C

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

Preview Lab → · Contrast checker → · Palette generator →

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