#1F7218#1F7218

#1F7218 is a mid, vivid green. Relative luminance 0.124; OKLCH L 48.5% C 0.146 H 142.0°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#1F7218
RGBrgb(31, 114, 24)
HSLhsl(115, 65%, 27%)
HSVhsv(115, 79%, 45%)
CMYKcmyk(72.8%, 0%, 78.9%, 55.3%)
CIE-LABlab(41.83, -42.25, 39.98)
CIE-LCHlch(41.83, 58.17, 136.58°)
OKLaboklab(48.47% -0.1151 0.0899)
OKLCHoklch(48.47% 0.146 142)
XYZxyz(6.7469, 12.3912, 2.9001)
Luminance0.1239 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7218 #6B1872
analogous
#4C7218 #1F7218 #18723E
triadic
#1F7218 #181F72 #72181F
tetradic
#1F7218 #184C72 #6B1872 #723E18
square
#1F7218 #184C72 #6B1872 #723E18
split-complementary
#1F7218 #3E1872 #72184C
monochromatic
#071905 #113F0D #1F7218 #2DA523 #3DD431

Accessibility & contrast

On white

6.04
#1F7218 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#1F7218 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7218
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7218#FFFFFF#000000##FFFFFF
##1F72181.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756705
Deuteranopia (green-blind)
#6B6022
Tritanopia (blue-blind)
#096E61
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #1f7218;
/* rgb */ color: rgb(31, 114, 24);
/* oklch */ color: oklch(48.5% 0.146 142.0);
Tailwind
colors: {
  custom: {
    50: '#699b5c',
    500: '#1f7218',
    950: '#000000',
  },
}
SCSS
$custom: #1f7218;
$custom-light: #699b5c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7218",
  "rgb": {
    "r": 31,
    "g": 114,
    "b": 24
  },
  "hsl": {
    "h": 115.333,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.48467,
    "c": 0.14604,
    "h": 142
  },
  "luminance": 0.12392
}

Semantic roles & 50–950 ramp

primary
#1F7218
secondary
#9F3EA7
accent
#40E8DB
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070E04
muted
#7A7E79

Preview Lab

Preview with #1F7218

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

Preview Lab → · Contrast checker → · Palette generator →

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