#1F7B1E#1F7B1E

#1F7B1E is a mid, vivid green. Relative luminance 0.146; OKLCH L 51.1% C 0.153 H 142.8°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#1F7B1E
RGBrgb(31, 123, 30)
HSLhsl(119, 61%, 30%)
HSVhsv(119, 76%, 48%)
CMYKcmyk(74.8%, 0%, 75.6%, 51.8%)
CIE-LABlab(45.01, -44.94, 40.88)
CIE-LCHlch(45.01, 60.75, 137.71°)
OKLaboklab(51.12% -0.1221 0.0927)
OKLCHoklch(51.12% 0.153 142.8)
XYZxyz(7.8819, 14.5501, 3.6211)
Luminance0.1455 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7B1E #7A1E7B
analogous
#4D7B1E #1F7B1E #1E7B4C
triadic
#1F7B1E #1E1F7B #7B1E1F
tetradic
#1F7B1E #1E4D7B #7A1E7B #7B4C1E
square
#1F7B1E #1E4D7B #7A1E7B #7B4C1E
split-complementary
#1F7B1E #4C1E7B #7B1E4D
monochromatic
#061906 #134A12 #1F7B1E #2BAC2A #44D142

Accessibility & contrast

On white

5.37
#1F7B1E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#1F7B1E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7B1E
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7B1E#FFFFFF#000000##FFFFFF
##1F7B1E1.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F0D
Deuteranopia (green-blind)
#736828
Tritanopia (blue-blind)
#007769
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #1f7b1e;
/* rgb */ color: rgb(31, 123, 30);
/* oklch */ color: oklch(51.1% 0.153 142.8);
Tailwind
colors: {
  custom: {
    50: '#6ba260',
    500: '#1f7b1e',
    950: '#000000',
  },
}
SCSS
$custom: #1f7b1e;
$custom-light: #6ba260;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7b1e",
  "rgb": {
    "r": 31,
    "g": 123,
    "b": 30
  },
  "hsl": {
    "h": 119.355,
    "s": 60.784,
    "l": 30
  },
  "oklch": {
    "l": 0.51119,
    "c": 0.15324,
    "h": 142.8
  },
  "luminance": 0.14551
}

Semantic roles & 50–950 ramp

primary
#1F7B1E
secondary
#AD46AE
accent
#44E4E2
background
#F6FAF5
surface
#ECF4EA
border
#C7CEC6
text
#080F05
muted
#7A7F79

Preview Lab

Preview with #1F7B1E

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

Preview Lab → · Contrast checker → · Palette generator →

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