#1F7A2B#1F7A2B

#1F7A2B is a mid, vivid green. Relative luminance 0.144; OKLCH L 51.0% C 0.142 H 145.0°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#1F7A2B
RGBrgb(31, 122, 43)
HSLhsl(128, 59%, 30%)
HSVhsv(128, 75%, 48%)
CMYKcmyk(74.6%, 0%, 64.8%, 52.2%)
CIE-LABlab(44.78, -43.22, 34.92)
CIE-LCHlch(44.78, 55.57, 141.06°)
OKLaboklab(50.96% -0.1167 0.0817)
OKLCHoklch(50.96% 0.142 145)
XYZxyz(7.9601, 14.3839, 4.6419)
Luminance0.1439 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7A2B #7A1F6E
analogous
#417A1F #1F7A2B #1F7A58
triadic
#1F7A2B #2B1F7A #7A2B1F
tetradic
#1F7A2B #1F417A #7A1F6E #7A581F
square
#1F7A2B #1F417A #7A1F6E #7A581F
split-complementary
#1F7A2B #581F7A #7A1F41
monochromatic
#061809 #13491A #1F7A2B #2BAB3C #44CF56

Accessibility & contrast

On white

5.42
#1F7A2B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#1F7A2B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7A2B
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7A2B#FFFFFF#000000##FFFFFF
##1F7A2B1.005.423.885.42
#FFFFFF5.421.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6E22
Deuteranopia (green-blind)
#726732
Tritanopia (blue-blind)
#007769
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #1f7a2b;
/* rgb */ color: rgb(31, 122, 43);
/* oklch */ color: oklch(51.0% 0.142 145.0);
Tailwind
colors: {
  custom: {
    50: '#6aa168',
    500: '#1f7a2b',
    950: '#000000',
  },
}
SCSS
$custom: #1f7a2b;
$custom-light: #6aa168;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7a2b",
  "rgb": {
    "r": 31,
    "g": 122,
    "b": 43
  },
  "hsl": {
    "h": 127.912,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.50962,
    "c": 0.14249,
    "h": 145
  },
  "luminance": 0.14385
}

Semantic roles & 50–950 ramp

primary
#1F7A2B
secondary
#AD47A0
accent
#45CEE3
background
#F6FAF6
surface
#ECF3EB
border
#C7CDC6
text
#070F06
muted
#7A7F7A

Preview Lab

Preview with #1F7A2B

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

Preview Lab → · Contrast checker → · Palette generator →

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