#1F7929#1F7929

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

Color values

HEX#1F7929
RGBrgb(31, 121, 41)
HSLhsl(127, 59%, 30%)
HSVhsv(127, 74%, 47%)
CMYKcmyk(74.4%, 0%, 66.1%, 52.5%)
CIE-LABlab(44.41, -43.10, 35.46)
CIE-LCHlch(44.41, 55.81, 140.55°)
OKLaboklab(50.65% -0.1165 0.0826)
OKLCHoklch(50.65% 0.143 144.7)
XYZxyz(7.8022, 14.1253, 4.4127)
Luminance0.1413 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7929 #791F6F
analogous
#42791F #1F7929 #1F7956
triadic
#1F7929 #291F79 #79291F
tetradic
#1F7929 #1F4279 #791F6F #79561F
square
#1F7929 #1F4279 #791F6F #79561F
split-complementary
#1F7929 #561F79 #791F42
monochromatic
#061808 #134818 #1F7929 #2BAA3A #43CF53

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F7929#FFFFFF#000000##FFFFFF
##1F79291.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)
#7B6D20
Deuteranopia (green-blind)
#716630
Tritanopia (blue-blind)
#007668
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #1f7929;
/* rgb */ color: rgb(31, 121, 41);
/* oklch */ color: oklch(50.7% 0.143 144.7);
Tailwind
colors: {
  custom: {
    50: '#69a166',
    500: '#1f7929',
    950: '#000000',
  },
}
SCSS
$custom: #1f7929;
$custom-light: #69a166;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7929",
  "rgb": {
    "r": 31,
    "g": 121,
    "b": 41
  },
  "hsl": {
    "h": 126.667,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.50652,
    "c": 0.14282,
    "h": 144.7
  },
  "luminance": 0.14126
}

Semantic roles & 50–950 ramp

primary
#1F7929
secondary
#AC47A1
accent
#45D1E2
background
#F6FAF6
surface
#ECF3EB
border
#C7CDC6
text
#070F06
muted
#7A7F7A

Preview Lab

Preview with #1F7929

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

Preview Lab → · Contrast checker → · Palette generator →

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