#1F792B#1F792B

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

Color values

HEX#1F792B
RGBrgb(31, 121, 43)
HSLhsl(128, 59%, 30%)
HSVhsv(128, 74%, 47%)
CMYKcmyk(74.4%, 0%, 64.5%, 52.5%)
CIE-LABlab(44.43, -42.85, 34.53)
CIE-LCHlch(44.43, 55.03, 141.14°)
OKLaboklab(50.68% -0.1157 0.0809)
OKLCHoklch(50.68% 0.141 145.1)
XYZxyz(7.8380, 14.1396, 4.6012)
Luminance0.1414 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F792B #791F6D
analogous
#40791F #1F792B #1F7958
triadic
#1F792B #2B1F79 #792B1F
tetradic
#1F792B #1F4079 #791F6D #79581F
square
#1F792B #1F4079 #791F6D #79581F
split-complementary
#1F792B #581F79 #791F40
monochromatic
#061809 #13481A #1F792B #2BAA3C #43CF56

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F792B#FFFFFF#000000##FFFFFF
##1F792B1.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)
#7B6D22
Deuteranopia (green-blind)
#716632
Tritanopia (blue-blind)
#007668
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #1f792b;
/* rgb */ color: rgb(31, 121, 43);
/* oklch */ color: oklch(50.7% 0.141 145.1);
Tailwind
colors: {
  custom: {
    50: '#69a167',
    500: '#1f792b',
    950: '#000000',
  },
}
SCSS
$custom: #1f792b;
$custom-light: #69a167;
$custom-dark: #000000;
JSON
{
  "hex": "#1f792b",
  "rgb": {
    "r": 31,
    "g": 121,
    "b": 43
  },
  "hsl": {
    "h": 128,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.50676,
    "c": 0.14119,
    "h": 145.1
  },
  "luminance": 0.1414
}

Semantic roles & 50–950 ramp

primary
#1F792B
secondary
#AC479F
accent
#45CDE2
background
#F6FAF6
surface
#ECF3EB
border
#C7CDC6
text
#070F06
muted
#7A7F7A

Preview Lab

Preview with #1F792B

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

Preview Lab → · Contrast checker → · Palette generator →

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