#1F7212#1F7212

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

Color values

HEX#1F7212
RGBrgb(31, 114, 18)
HSLhsl(112, 73%, 26%)
HSVhsv(112, 84%, 45%)
CMYKcmyk(72.8%, 0%, 84.2%, 55.3%)
CIE-LABlab(41.80, -42.67, 42.00)
CIE-LCHlch(41.80, 59.87, 135.45°)
OKLaboklab(48.43% -0.1165 0.0933)
OKLCHoklch(48.43% 0.149 141.3)
XYZxyz(6.6912, 12.3689, 2.6070)
Luminance0.1237 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7212 #651272
analogous
#4F7212 #1F7212 #127235
triadic
#1F7212 #121F72 #72121F
tetradic
#1F7212 #124F72 #651272 #723512
square
#1F7212 #124F72 #651272 #723512
split-complementary
#1F7212 #351272 #72124F
monochromatic
#071A04 #113D0A #1F7212 #2DA71A #3CDC23

Accessibility & contrast

On white

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

On black

3.47
#1F7212 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##1F7212#FFFFFF#000000##FFFFFF
##1F72121.006.043.476.04
#FFFFFF6.041.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756700
Deuteranopia (green-blind)
#6B601E
Tritanopia (blue-blind)
#0B6E60
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #1f7212;
/* rgb */ color: rgb(31, 114, 18);
/* oklch */ color: oklch(48.4% 0.149 141.3);
Tailwind
colors: {
  custom: {
    50: '#699b59',
    500: '#1f7212',
    950: '#000000',
  },
}
SCSS
$custom: #1f7212;
$custom-light: #699b59;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7212",
  "rgb": {
    "r": 31,
    "g": 114,
    "b": 18
  },
  "hsl": {
    "h": 111.875,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.48427,
    "c": 0.14924,
    "h": 141.3
  },
  "luminance": 0.1237
}

Semantic roles & 50–950 ramp

primary
#1F7212
secondary
#9937A9
accent
#38EFD7
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070E04
muted
#7A7E79

Preview Lab

Preview with #1F7212

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

Preview Lab → · Contrast checker → · Palette generator →

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