#1F7B2E#1F7B2E

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

Color values

HEX#1F7B2E
RGBrgb(31, 123, 46)
HSLhsl(130, 60%, 30%)
HSVhsv(130, 75%, 48%)
CMYKcmyk(74.8%, 0%, 62.6%, 51.8%)
CIE-LABlab(45.16, -43.20, 33.90)
CIE-LCHlch(45.16, 54.92, 141.88°)
OKLaboklab(51.29% -0.1166 0.0798)
OKLCHoklch(51.29% 0.141 145.6)
XYZxyz(8.1406, 14.6536, 4.9836)
Luminance0.1465 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7B2E #7B1F6C
analogous
#3E7B1F #1F7B2E #1F7B5C
triadic
#1F7B2E #2E1F7B #7B2E1F
tetradic
#1F7B2E #1F3E7B #7B1F6C #7B5C1F
square
#1F7B2E #1F3E7B #7B1F6C #7B5C1F
split-complementary
#1F7B2E #5C1F7B #7B1F3E
monochromatic
#061909 #134A1C #1F7B2E #2BAC40 #44D05B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F7B2E#FFFFFF#000000##FFFFFF
##1F7B2E1.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)
#7D6F26
Deuteranopia (green-blind)
#726834
Tritanopia (blue-blind)
#00786A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #1f7b2e;
/* rgb */ color: rgb(31, 123, 46);
/* oklch */ color: oklch(51.3% 0.141 145.6);
Tailwind
colors: {
  custom: {
    50: '#6aa26a',
    500: '#1f7b2e',
    950: '#000000',
  },
}
SCSS
$custom: #1f7b2e;
$custom-light: #6aa26a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7b2e",
  "rgb": {
    "r": 31,
    "g": 123,
    "b": 46
  },
  "hsl": {
    "h": 129.783,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.51286,
    "c": 0.14127,
    "h": 145.6
  },
  "luminance": 0.14654
}

Semantic roles & 50–950 ramp

primary
#1F7B2E
secondary
#AE489E
accent
#45C9E3
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F06
muted
#7A7F7A

Preview Lab

Preview with #1F7B2E

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

Preview Lab → · Contrast checker → · Palette generator →

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