#1F7E2B#1F7E2B

#1F7E2B is a mid, vivid green. Relative luminance 0.154; OKLCH L 52.1% C 0.148 H 144.8°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#1F7E2B
RGBrgb(31, 126, 43)
HSLhsl(128, 61%, 31%)
HSVhsv(128, 75%, 49%)
CMYKcmyk(75.4%, 0%, 65.9%, 50.6%)
CIE-LABlab(46.16, -44.67, 36.47)
CIE-LCHlch(46.16, 57.67, 140.77°)
OKLaboklab(52.11% -0.1207 0.085)
OKLCHoklch(52.11% 0.148 144.8)
XYZxyz(8.4614, 15.3865, 4.8090)
Luminance0.1539 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7E2B #7E1F72
analogous
#427E1F #1F7E2B #1F7E5A
triadic
#1F7E2B #2B1F7E #7E2B1F
tetradic
#1F7E2B #1F427E #7E1F72 #7E5A1F
square
#1F7E2B #1F427E #7E1F72 #7E5A1F
split-complementary
#1F7E2B #5A1F7E #7E1F42
monochromatic
#071C09 #134D1A #1F7E2B #2BAF3C #46D158

Accessibility & contrast

On white

5.15
#1F7E2B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#1F7E2B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7E2B
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7E2B#FFFFFF#000000##FFFFFF
##1F7E2B1.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807221
Deuteranopia (green-blind)
#756A32
Tritanopia (blue-blind)
#007B6D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #1f7e2b;
/* rgb */ color: rgb(31, 126, 43);
/* oklch */ color: oklch(52.1% 0.148 144.8);
Tailwind
colors: {
  custom: {
    50: '#6ba468',
    500: '#1f7e2b',
    950: '#000000',
  },
}
SCSS
$custom: #1f7e2b;
$custom-light: #6ba468;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7e2b",
  "rgb": {
    "r": 31,
    "g": 126,
    "b": 43
  },
  "hsl": {
    "h": 127.579,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.52107,
    "c": 0.1476,
    "h": 144.8
  },
  "luminance": 0.15387
}

Semantic roles & 50–950 ramp

primary
#1F7E2B
secondary
#B148A4
accent
#44CFE4
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F06
muted
#7A7F7A

Preview Lab

Preview with #1F7E2B

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

Preview Lab → · Contrast checker → · Palette generator →

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