#1F7E1E#1F7E1E

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

Color values

HEX#1F7E1E
RGBrgb(31, 126, 30)
HSLhsl(119, 62%, 31%)
HSVhsv(119, 76%, 49%)
CMYKcmyk(75.4%, 0%, 76.2%, 50.6%)
CIE-LABlab(46.05, -45.99, 41.93)
CIE-LCHlch(46.05, 62.23, 137.64°)
OKLaboklab(51.98% -0.1249 0.0949)
OKLCHoklch(51.98% 0.157 142.8)
XYZxyz(8.2598, 15.3058, 3.7471)
Luminance0.1531 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7E1E #7D1E7E
analogous
#4F7E1E #1F7E1E #1E7E4D
triadic
#1F7E1E #1E1F7E #7E1E1F
tetradic
#1F7E1E #1E4F7E #7D1E7E #7E4D1E
square
#1F7E1E #1E4F7E #7D1E7E #7E4D1E
split-complementary
#1F7E1E #4D1E7E #7E1E4F
monochromatic
#071B06 #134D12 #1F7E1E #2BAF2A #45D244

Accessibility & contrast

On white

5.17
#1F7E1E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#1F7E1E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7E1E
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7E1E#FFFFFF#000000##FFFFFF
##1F7E1E1.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#81720C
Deuteranopia (green-blind)
#766A28
Tritanopia (blue-blind)
#007A6B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #1f7e1e;
/* rgb */ color: rgb(31, 126, 30);
/* oklch */ color: oklch(52.0% 0.157 142.8);
Tailwind
colors: {
  custom: {
    50: '#6ba461',
    500: '#1f7e1e',
    950: '#000000',
  },
}
SCSS
$custom: #1f7e1e;
$custom-light: #6ba461;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7e1e",
  "rgb": {
    "r": 31,
    "g": 126,
    "b": 30
  },
  "hsl": {
    "h": 119.375,
    "s": 61.538,
    "l": 30.588
  },
  "oklch": {
    "l": 0.51982,
    "c": 0.15683,
    "h": 142.8
  },
  "luminance": 0.15307
}

Semantic roles & 50–950 ramp

primary
#1F7E1E
secondary
#B047B1
accent
#43E5E3
background
#F6FAF5
surface
#ECF4EA
border
#C7CEC6
text
#080F05
muted
#7A7F79

Preview Lab

Preview with #1F7E1E

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

Preview Lab → · Contrast checker → · Palette generator →

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