#1F7B2F#1F7B2F

#1F7B2F is a mid, vivid green. Relative luminance 0.147; OKLCH L 51.3% C 0.140 H 145.8°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#1F7B2F
RGBrgb(31, 123, 47)
HSLhsl(130, 60%, 30%)
HSVhsv(130, 75%, 48%)
CMYKcmyk(74.8%, 0%, 61.8%, 51.8%)
CIE-LABlab(45.17, -43.07, 33.42)
CIE-LCHlch(45.17, 54.52, 142.19°)
OKLaboklab(51.3% -0.1162 0.0788)
OKLCHoklch(51.3% 0.14 145.8)
XYZxyz(8.1605, 14.6615, 5.0887)
Luminance0.1466 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7B2F #7B1F6B
analogous
#3D7B1F #1F7B2F #1F7B5D
triadic
#1F7B2F #2F1F7B #7B2F1F
tetradic
#1F7B2F #1F3D7B #7B1F6B #7B5D1F
square
#1F7B2F #1F3D7B #7B1F6B #7B5D1F
split-complementary
#1F7B2F #5D1F7B #7B1F3D
monochromatic
#06190A #134A1C #1F7B2F #2BAC42 #44D05D

Accessibility & contrast

On white

5.34
#1F7B2F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#1F7B2F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7B2F
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7B2F#FFFFFF#000000##FFFFFF
##1F7B2F1.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6F27
Deuteranopia (green-blind)
#726835
Tritanopia (blue-blind)
#00786B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #1f7b2f;
/* rgb */ color: rgb(31, 123, 47);
/* oklch */ color: oklch(51.3% 0.140 145.8);
Tailwind
colors: {
  custom: {
    50: '#6aa26a',
    500: '#1f7b2f',
    950: '#000000',
  },
}
SCSS
$custom: #1f7b2f;
$custom-light: #6aa26a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7b2f",
  "rgb": {
    "r": 31,
    "g": 123,
    "b": 47
  },
  "hsl": {
    "h": 130.435,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.51298,
    "c": 0.14041,
    "h": 145.8
  },
  "luminance": 0.14662
}

Semantic roles & 50–950 ramp

primary
#1F7B2F
secondary
#AE489C
accent
#45C7E3
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F07
muted
#7A7F7A

Preview Lab

Preview with #1F7B2F

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

Preview Lab → · Contrast checker → · Palette generator →

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