#1F7E18#1F7E18

#1F7E18 is a mid, vivid green. Relative luminance 0.153; OKLCH L 51.9% C 0.160 H 142.1°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#1F7E18
RGBrgb(31, 126, 24)
HSLhsl(116, 68%, 29%)
HSVhsv(116, 81%, 49%)
CMYKcmyk(75.4%, 0%, 81%, 50.6%)
CIE-LABlab(46.01, -46.45, 44.05)
CIE-LCHlch(46.01, 64.02, 136.52°)
OKLaboklab(51.94% -0.1264 0.0984)
OKLCHoklch(51.94% 0.16 142.1)
XYZxyz(8.1903, 15.2780, 3.3813)
Luminance0.1528 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7E18 #77187E
analogous
#527E18 #1F7E18 #187E44
triadic
#1F7E18 #181F7E #7E181F
tetradic
#1F7E18 #18527E #77187E #7E4418
square
#1F7E18 #18527E #77187E #7E4418
split-complementary
#1F7E18 #44187E #7E1852
monochromatic
#061A05 #124B0E #1F7E18 #2CB122 #43D937

Accessibility & contrast

On white

5.18
#1F7E18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #1F7E18
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7E18#FFFFFF#000000##FFFFFF
##1F7E181.005.184.065.18
#FFFFFF5.181.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817100
Deuteranopia (green-blind)
#766A24
Tritanopia (blue-blind)
#007A6B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #1f7e18;
/* rgb */ color: rgb(31, 126, 24);
/* oklch */ color: oklch(51.9% 0.160 142.1);
Tailwind
colors: {
  custom: {
    50: '#6ca45e',
    500: '#1f7e18',
    950: '#000000',
  },
}
SCSS
$custom: #1f7e18;
$custom-light: #6ca45e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7e18",
  "rgb": {
    "r": 31,
    "g": 126,
    "b": 24
  },
  "hsl": {
    "h": 115.882,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.51938,
    "c": 0.16023,
    "h": 142.1
  },
  "luminance": 0.15279
}

Semantic roles & 50–950 ramp

primary
#1F7E18
secondary
#AB3FB2
accent
#3DEBDF
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #1F7E18

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

Preview Lab → · Contrast checker → · Palette generator →

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