#1F7F18#1F7F18

#1F7F18 is a mid, vivid green. Relative luminance 0.155; OKLCH L 52.2% C 0.161 H 142.1°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#1F7F18
RGBrgb(31, 127, 24)
HSLhsl(116, 68%, 30%)
HSVhsv(116, 81%, 50%)
CMYKcmyk(75.6%, 0%, 81.1%, 50.2%)
CIE-LABlab(46.36, -46.79, 44.39)
CIE-LCHlch(46.36, 64.49, 136.51°)
OKLaboklab(52.23% -0.1274 0.0991)
OKLCHoklch(52.23% 0.161 142.1)
XYZxyz(8.3188, 15.5351, 3.4241)
Luminance0.1554 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7F18 #78187F
analogous
#537F18 #1F7F18 #187F44
triadic
#1F7F18 #181F7F #7F181F
tetradic
#1F7F18 #18537F #78187F #7F4418
square
#1F7F18 #18537F #78187F #7F4418
split-complementary
#1F7F18 #44187F #7F1853
monochromatic
#061A05 #124C0E #1F7F18 #2CB222 #43D938

Accessibility & contrast

On white

5.11
#1F7F18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#1F7F18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7F18
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7F18#FFFFFF#000000##FFFFFF
##1F7F181.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827200
Deuteranopia (green-blind)
#776B24
Tritanopia (blue-blind)
#007B6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #1f7f18;
/* rgb */ color: rgb(31, 127, 24);
/* oklch */ color: oklch(52.2% 0.161 142.1);
Tailwind
colors: {
  custom: {
    50: '#6ca55e',
    500: '#1f7f18',
    950: '#000000',
  },
}
SCSS
$custom: #1f7f18;
$custom-light: #6ca55e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7f18",
  "rgb": {
    "r": 31,
    "g": 127,
    "b": 24
  },
  "hsl": {
    "h": 115.922,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.52226,
    "c": 0.16138,
    "h": 142.1
  },
  "luminance": 0.15536
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F7F18

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

Preview Lab → · Contrast checker → · Palette generator →

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