#1F7B14#1F7B14

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

Color values

HEX#1F7B14
RGBrgb(31, 123, 20)
HSLhsl(114, 72%, 28%)
HSVhsv(114, 84%, 48%)
CMYKcmyk(74.8%, 0%, 83.7%, 51.8%)
CIE-LABlab(44.95, -45.68, 44.33)
CIE-LCHlch(44.95, 63.66, 135.86°)
OKLaboklab(51.05% -0.1246 0.0984)
OKLCHoklch(51.05% 0.159 141.7)
XYZxyz(7.7739, 14.5069, 3.0521)
Luminance0.1451 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7B14 #70147B
analogous
#527B14 #1F7B14 #147B3C
triadic
#1F7B14 #141F7B #7B141F
tetradic
#1F7B14 #14527B #70147B #7B3C14
square
#1F7B14 #14527B #70147B #7B3C14
split-complementary
#1F7B14 #3C147B #7B1452
monochromatic
#071A04 #12460B #1F7B14 #2CB01D #3FDD2D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #1f7b14;
/* rgb */ color: rgb(31, 123, 20);
/* oklch */ color: oklch(51.0% 0.159 141.7);
Tailwind
colors: {
  custom: {
    50: '#6ba25c',
    500: '#1f7b14',
    950: '#000000',
  },
}
SCSS
$custom: #1f7b14;
$custom-light: #6ba25c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7b14",
  "rgb": {
    "r": 31,
    "g": 123,
    "b": 20
  },
  "hsl": {
    "h": 113.592,
    "s": 72.028,
    "l": 28.039
  },
  "oklch": {
    "l": 0.5105,
    "c": 0.15875,
    "h": 141.7
  },
  "luminance": 0.14508
}

Semantic roles & 50–950 ramp

primary
#1F7B14
secondary
#A43AB1
accent
#39EFDB
background
#F6FAF5
surface
#ECF4E9
border
#C7CEC5
text
#080F04
muted
#7A7F79

Preview Lab

Preview with #1F7B14

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

Preview Lab → · Contrast checker → · Palette generator →

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