#1F7219#1F7219

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

Color values

HEX#1F7219
RGBrgb(31, 114, 25)
HSLhsl(116, 64%, 27%)
HSVhsv(116, 78%, 45%)
CMYKcmyk(72.8%, 0%, 78.1%, 55.3%)
CIE-LABlab(41.84, -42.17, 39.61)
CIE-LCHlch(41.84, 57.85, 136.79°)
OKLaboklab(48.48% -0.1148 0.0893)
OKLCHoklch(48.48% 0.145 142.1)
XYZxyz(6.7575, 12.3954, 2.9559)
Luminance0.1240 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7219 #6C1972
analogous
#4C7219 #1F7219 #197240
triadic
#1F7219 #191F72 #72191F
tetradic
#1F7219 #194C72 #6C1972 #724019
square
#1F7219 #194C72 #6C1972 #724019
split-complementary
#1F7219 #401972 #72194C
monochromatic
#071906 #11400E #1F7219 #2DA424 #3ED233

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F7219#FFFFFF#000000##FFFFFF
##1F72191.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)
#756707
Deuteranopia (green-blind)
#6B6023
Tritanopia (blue-blind)
#086E61
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #1f7219;
/* rgb */ color: rgb(31, 114, 25);
/* oklch */ color: oklch(48.5% 0.145 142.1);
Tailwind
colors: {
  custom: {
    50: '#699b5c',
    500: '#1f7219',
    950: '#000000',
  },
}
SCSS
$custom: #1f7219;
$custom-light: #699b5c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7219",
  "rgb": {
    "r": 31,
    "g": 114,
    "b": 25
  },
  "hsl": {
    "h": 115.955,
    "s": 64.029,
    "l": 27.255
  },
  "oklch": {
    "l": 0.48475,
    "c": 0.14544,
    "h": 142.1
  },
  "luminance": 0.12396
}

Semantic roles & 50–950 ramp

primary
#1F7219
secondary
#A040A7
accent
#41E7DC
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070E04
muted
#7A7E79

Preview Lab

Preview with #1F7219

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

Preview Lab → · Contrast checker → · Palette generator →

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