#1F7B17#1F7B17

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

Color values

HEX#1F7B17
RGBrgb(31, 123, 23)
HSLhsl(115, 68%, 29%)
HSVhsv(115, 81%, 48%)
CMYKcmyk(74.8%, 0%, 81.3%, 51.8%)
CIE-LABlab(44.97, -45.49, 43.39)
CIE-LCHlch(44.97, 62.86, 136.36°)
OKLaboklab(51.07% -0.1239 0.0969)
OKLCHoklch(51.07% 0.157 142)
XYZxyz(7.8022, 14.5182, 3.2016)
Luminance0.1452 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7B17 #73177B
analogous
#517B17 #1F7B17 #177B41
triadic
#1F7B17 #171F7B #7B171F
tetradic
#1F7B17 #17517B #73177B #7B4117
square
#1F7B17 #17517B #73177B #7B4117
split-complementary
#1F7B17 #41177B #7B1751
monochromatic
#061A05 #12470D #1F7B17 #2CAF21 #41D933

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F7B17#FFFFFF#000000##FFFFFF
##1F7B171.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)
#746823
Tritanopia (blue-blind)
#027768
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #1f7b17;
/* rgb */ color: rgb(31, 123, 23);
/* oklch */ color: oklch(51.1% 0.157 142.0);
Tailwind
colors: {
  custom: {
    50: '#6ba25d',
    500: '#1f7b17',
    950: '#000000',
  },
}
SCSS
$custom: #1f7b17;
$custom-light: #6ba25d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7b17",
  "rgb": {
    "r": 31,
    "g": 123,
    "b": 23
  },
  "hsl": {
    "h": 115.2,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.51068,
    "c": 0.15727,
    "h": 142
  },
  "luminance": 0.14519
}

Semantic roles & 50–950 ramp

primary
#1F7B17
secondary
#A73EB0
accent
#3CEBDD
background
#F6FAF5
surface
#ECF4E9
border
#C7CEC5
text
#080F05
muted
#7A7F79

Preview Lab

Preview with #1F7B17

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

Preview Lab → · Contrast checker → · Palette generator →

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