#1F7A2D#1F7A2D

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

Color values

HEX#1F7A2D
RGBrgb(31, 122, 45)
HSLhsl(129, 59%, 30%)
HSVhsv(129, 75%, 48%)
CMYKcmyk(74.6%, 0%, 63.1%, 52.2%)
CIE-LABlab(44.80, -42.97, 33.98)
CIE-LCHlch(44.80, 54.78, 141.66°)
OKLaboklab(50.99% -0.116 0.0799)
OKLCHoklch(50.99% 0.141 145.4)
XYZxyz(7.9977, 14.3989, 4.8399)
Luminance0.1440 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7A2D #7A1F6C
analogous
#3E7A1F #1F7A2D #1F7A5B
triadic
#1F7A2D #2D1F7A #7A2D1F
tetradic
#1F7A2D #1F3E7A #7A1F6C #7A5B1F
square
#1F7A2D #1F3E7A #7A1F6C #7A5B1F
split-complementary
#1F7A2D #5B1F7A #7A1F3E
monochromatic
#061809 #13491B #1F7A2D #2BAB3F #44CF59

Accessibility & contrast

On white

5.41
#1F7A2D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #1F7A2D
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7A2D#FFFFFF#000000##FFFFFF
##1F7A2D1.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f7a2d;
/* rgb */ color: rgb(31, 122, 45);
/* oklch */ color: oklch(51.0% 0.141 145.4);
Tailwind
colors: {
  custom: {
    50: '#6aa169',
    500: '#1f7a2d',
    950: '#000000',
  },
}
SCSS
$custom: #1f7a2d;
$custom-light: #6aa169;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7a2d",
  "rgb": {
    "r": 31,
    "g": 122,
    "b": 45
  },
  "hsl": {
    "h": 129.231,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.50987,
    "c": 0.14082,
    "h": 145.4
  },
  "luminance": 0.144
}

Semantic roles & 50–950 ramp

primary
#1F7A2D
secondary
#AD479E
accent
#45CAE3
background
#F6FAF6
surface
#ECF3EB
border
#C7CDC6
text
#070F06
muted
#7A7F7A

Preview Lab

Preview with #1F7A2D

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

Preview Lab → · Contrast checker → · Palette generator →

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