#1F7213#1F7213

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

Color values

HEX#1F7213
RGBrgb(31, 114, 19)
HSLhsl(112, 71%, 26%)
HSVhsv(112, 83%, 45%)
CMYKcmyk(72.8%, 0%, 83.3%, 55.3%)
CIE-LABlab(41.80, -42.60, 41.69)
CIE-LCHlch(41.80, 59.61, 135.62°)
OKLaboklab(48.43% -0.1163 0.0928)
OKLCHoklch(48.43% 0.149 141.4)
XYZxyz(6.6996, 12.3722, 2.6510)
Luminance0.1237 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7213 #661372
analogous
#4E7213 #1F7213 #137236
triadic
#1F7213 #131F72 #72131F
tetradic
#1F7213 #134E72 #661372 #723613
square
#1F7213 #134E72 #661372 #723613
split-complementary
#1F7213 #361372 #72134E
monochromatic
#071A04 #113E0A #1F7213 #2DA61C #3CDB25

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #1f7213;
/* rgb */ color: rgb(31, 114, 19);
/* oklch */ color: oklch(48.4% 0.149 141.4);
Tailwind
colors: {
  custom: {
    50: '#699b5a',
    500: '#1f7213',
    950: '#000000',
  },
}
SCSS
$custom: #1f7213;
$custom-light: #699b5a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7213",
  "rgb": {
    "r": 31,
    "g": 114,
    "b": 19
  },
  "hsl": {
    "h": 112.421,
    "s": 71.429,
    "l": 26.078
  },
  "oklch": {
    "l": 0.48433,
    "c": 0.14876,
    "h": 141.4
  },
  "luminance": 0.12373
}

Semantic roles & 50–950 ramp

primary
#1F7213
secondary
#9A38A9
accent
#3AEED7
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070E04
muted
#7A7E79

Preview Lab

Preview with #1F7213

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

Preview Lab → · Contrast checker → · Palette generator →

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