#1F792A#1F792A

#1F792A is a mid, vivid green. Relative luminance 0.141; OKLCH L 50.7% C 0.142 H 144.9°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#1F792A
RGBrgb(31, 121, 42)
HSLhsl(127, 59%, 30%)
HSVhsv(127, 74%, 47%)
CMYKcmyk(74.4%, 0%, 65.3%, 52.5%)
CIE-LABlab(44.42, -42.98, 35.00)
CIE-LCHlch(44.42, 55.42, 140.84°)
OKLaboklab(50.66% -0.1161 0.0817)
OKLCHoklch(50.66% 0.142 144.9)
XYZxyz(7.8198, 14.1323, 4.5057)
Luminance0.1413 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F792A #791F6E
analogous
#41791F #1F792A #1F7957
triadic
#1F792A #2A1F79 #792A1F
tetradic
#1F792A #1F4179 #791F6E #79571F
square
#1F792A #1F4179 #791F6E #79571F
split-complementary
#1F792A #571F79 #791F41
monochromatic
#061808 #134819 #1F792A #2BAA3B #43CF54

Accessibility & contrast

On white

5.49
#1F792A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#1F792A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F792A
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F792A#FFFFFF#000000##FFFFFF
##1F792A1.005.493.835.49
#FFFFFF5.491.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6D21
Deuteranopia (green-blind)
#716631
Tritanopia (blue-blind)
#007668
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #1f792a;
/* rgb */ color: rgb(31, 121, 42);
/* oklch */ color: oklch(50.7% 0.142 144.9);
Tailwind
colors: {
  custom: {
    50: '#69a167',
    500: '#1f792a',
    950: '#000000',
  },
}
SCSS
$custom: #1f792a;
$custom-light: #69a167;
$custom-dark: #000000;
JSON
{
  "hex": "#1f792a",
  "rgb": {
    "r": 31,
    "g": 121,
    "b": 42
  },
  "hsl": {
    "h": 127.333,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.50664,
    "c": 0.14201,
    "h": 144.9
  },
  "luminance": 0.14133
}

Semantic roles & 50–950 ramp

primary
#1F792A
secondary
#AC47A0
accent
#45CFE2
background
#F6FAF6
surface
#ECF3EB
border
#C7CDC6
text
#070F06
muted
#7A7F7A

Preview Lab

Preview with #1F792A

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

Preview Lab → · Contrast checker → · Palette generator →

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