#1F7214#1F7214

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

Color values

HEX#1F7214
RGBrgb(31, 114, 20)
HSLhsl(113, 70%, 26%)
HSVhsv(113, 82%, 45%)
CMYKcmyk(72.8%, 0%, 82.5%, 55.3%)
CIE-LABlab(41.81, -42.54, 41.37)
CIE-LCHlch(41.81, 59.34, 135.80°)
OKLaboklab(48.44% -0.1161 0.0922)
OKLCHoklch(48.44% 0.148 141.5)
XYZxyz(6.7083, 12.3757, 2.6969)
Luminance0.1238 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7214 #671472
analogous
#4E7214 #1F7214 #147238
triadic
#1F7214 #141F72 #72141F
tetradic
#1F7214 #144E72 #671472 #723814
square
#1F7214 #144E72 #671472 #723814
split-complementary
#1F7214 #381472 #72144E
monochromatic
#071A05 #113E0B #1F7214 #2DA61D #3CD927

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F7214#FFFFFF#000000##FFFFFF
##1F72141.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)
#756700
Deuteranopia (green-blind)
#6B601F
Tritanopia (blue-blind)
#0A6E61
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #1f7214;
/* rgb */ color: rgb(31, 114, 20);
/* oklch */ color: oklch(48.4% 0.148 141.5);
Tailwind
colors: {
  custom: {
    50: '#699b5a',
    500: '#1f7214',
    950: '#000000',
  },
}
SCSS
$custom: #1f7214;
$custom-light: #699b5a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7214",
  "rgb": {
    "r": 31,
    "g": 114,
    "b": 20
  },
  "hsl": {
    "h": 112.979,
    "s": 70.149,
    "l": 26.275
  },
  "oklch": {
    "l": 0.48439,
    "c": 0.14825,
    "h": 141.5
  },
  "luminance": 0.12376
}

Semantic roles & 50–950 ramp

primary
#1F7214
secondary
#9B39A8
accent
#3BEDD8
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070E04
muted
#7A7E79

Preview Lab

Preview with #1F7214

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

Preview Lab → · Contrast checker → · Palette generator →

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