#1F7216#1F7216

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

Color values

HEX#1F7216
RGBrgb(31, 114, 22)
HSLhsl(114, 68%, 27%)
HSVhsv(114, 81%, 45%)
CMYKcmyk(72.8%, 0%, 80.7%, 55.3%)
CIE-LABlab(41.82, -42.40, 40.69)
CIE-LCHlch(41.82, 58.77, 136.18°)
OKLaboklab(48.45% -0.1156 0.0911)
OKLCHoklch(48.45% 0.147 141.8)
XYZxyz(6.7268, 12.3831, 2.7946)
Luminance0.1238 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7216 #691672
analogous
#4D7216 #1F7216 #16723B
triadic
#1F7216 #161F72 #72161F
tetradic
#1F7216 #164D72 #691672 #723B16
square
#1F7216 #164D72 #691672 #723B16
split-complementary
#1F7216 #3B1672 #72164D
monochromatic
#071A05 #113F0C #1F7216 #2DA520 #3DD62C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F7216#FFFFFF#000000##FFFFFF
##1F72161.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)
#756701
Deuteranopia (green-blind)
#6B6021
Tritanopia (blue-blind)
#096E61
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #1f7216;
/* rgb */ color: rgb(31, 114, 22);
/* oklch */ color: oklch(48.5% 0.147 141.8);
Tailwind
colors: {
  custom: {
    50: '#699b5b',
    500: '#1f7216',
    950: '#000000',
  },
}
SCSS
$custom: #1f7216;
$custom-light: #699b5b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7216",
  "rgb": {
    "r": 31,
    "g": 114,
    "b": 22
  },
  "hsl": {
    "h": 114.13,
    "s": 67.647,
    "l": 26.667
  },
  "oklch": {
    "l": 0.48453,
    "c": 0.14718,
    "h": 141.8
  },
  "luminance": 0.12384
}

Semantic roles & 50–950 ramp

primary
#1F7216
secondary
#9D3CA8
accent
#3DEBDA
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070E04
muted
#7A7E79

Preview Lab

Preview with #1F7216

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

Preview Lab → · Contrast checker → · Palette generator →

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