#1F7B15#1F7B15

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

Color values

HEX#1F7B15
RGBrgb(31, 123, 21)
HSLhsl(114, 71%, 28%)
HSVhsv(114, 83%, 48%)
CMYKcmyk(74.8%, 0%, 82.9%, 51.8%)
CIE-LABlab(44.96, -45.62, 44.03)
CIE-LCHlch(44.96, 63.40, 136.02°)
OKLaboklab(51.06% -0.1243 0.0979)
OKLCHoklch(51.06% 0.158 141.8)
XYZxyz(7.7829, 14.5105, 3.1000)
Luminance0.1451 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7B15 #71157B
analogous
#527B15 #1F7B15 #157B3E
triadic
#1F7B15 #151F7B #7B151F
tetradic
#1F7B15 #15527B #71157B #7B3E15
square
#1F7B15 #15527B #71157B #7B3E15
split-complementary
#1F7B15 #3E157B #7B1552
monochromatic
#071A04 #12470C #1F7B15 #2CAF1E #40DB2F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F7B15#FFFFFF#000000##FFFFFF
##1F7B151.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: #1f7b15;
/* rgb */ color: rgb(31, 123, 21);
/* oklch */ color: oklch(51.1% 0.158 141.8);
Tailwind
colors: {
  custom: {
    50: '#6ba25c',
    500: '#1f7b15',
    950: '#000000',
  },
}
SCSS
$custom: #1f7b15;
$custom-light: #6ba25c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7b15",
  "rgb": {
    "r": 31,
    "g": 123,
    "b": 21
  },
  "hsl": {
    "h": 114.118,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.51056,
    "c": 0.15827,
    "h": 141.8
  },
  "luminance": 0.14511
}

Semantic roles & 50–950 ramp

primary
#1F7B15
secondary
#A53BB0
accent
#3AEEDC
background
#F6FAF5
surface
#ECF4E9
border
#C7CEC5
text
#080F04
muted
#7A7F79

Preview Lab

Preview with #1F7B15

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

Preview Lab → · Contrast checker → · Palette generator →

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