#1F7B16#1F7B16

#1F7B16 is a mid, vivid green. Relative luminance 0.145; OKLCH L 51.1% C 0.158 H 141.9°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#1F7B16
RGBrgb(31, 123, 22)
HSLhsl(115, 70%, 28%)
HSVhsv(115, 82%, 48%)
CMYKcmyk(74.8%, 0%, 82.1%, 51.8%)
CIE-LABlab(44.96, -45.56, 43.71)
CIE-LCHlch(44.96, 63.13, 136.18°)
OKLaboklab(51.06% -0.1241 0.0974)
OKLCHoklch(51.06% 0.158 141.9)
XYZxyz(7.7924, 14.5143, 3.1498)
Luminance0.1452 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7B16 #72167B
analogous
#517B16 #1F7B16 #167B3F
triadic
#1F7B16 #161F7B #7B161F
tetradic
#1F7B16 #16517B #72167B #7B3F16
square
#1F7B16 #16517B #72167B #7B3F16
split-complementary
#1F7B16 #3F167B #7B1651
monochromatic
#071A05 #12470D #1F7B16 #2CAF1F #40DA31

Accessibility & contrast

On white

5.38
#1F7B16 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#1F7B16 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7B16
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7B16#FFFFFF#000000##FFFFFF
##1F7B161.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F00
Deuteranopia (green-blind)
#746822
Tritanopia (blue-blind)
#027768
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #1f7b16;
/* rgb */ color: rgb(31, 123, 22);
/* oklch */ color: oklch(51.1% 0.158 141.9);
Tailwind
colors: {
  custom: {
    50: '#6ba25c',
    500: '#1f7b16',
    950: '#000000',
  },
}
SCSS
$custom: #1f7b16;
$custom-light: #6ba25c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7b16",
  "rgb": {
    "r": 31,
    "g": 123,
    "b": 22
  },
  "hsl": {
    "h": 114.653,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.51062,
    "c": 0.15778,
    "h": 141.9
  },
  "luminance": 0.14515
}

Semantic roles & 50–950 ramp

primary
#1F7B16
secondary
#A63DB0
accent
#3BECDD
background
#F6FAF5
surface
#ECF4E9
border
#C7CEC5
text
#080F04
muted
#7A7F79

Preview Lab

Preview with #1F7B16

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

Preview Lab → · Contrast checker → · Palette generator →

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