#1F7828#1F7828

#1F7828 is a mid, vivid green. Relative luminance 0.139; OKLCH L 50.4% C 0.142 H 144.5°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#1F7828
RGBrgb(31, 120, 40)
HSLhsl(126, 59%, 30%)
HSVhsv(126, 74%, 47%)
CMYKcmyk(74.2%, 0%, 66.7%, 52.9%)
CIE-LABlab(44.06, -42.85, 35.53)
CIE-LCHlch(44.06, 55.67, 140.33°)
OKLaboklab(50.35% -0.1159 0.0827)
OKLCHoklch(50.35% 0.142 144.5)
XYZxyz(7.6640, 13.8766, 4.2816)
Luminance0.1388 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7828 #781F6F
analogous
#43781F #1F7828 #1F7854
triadic
#1F7828 #281F78 #78281F
tetradic
#1F7828 #1F4378 #781F6F #78541F
square
#1F7828 #1F4378 #781F6F #78541F
split-complementary
#1F7828 #541F78 #781F43
monochromatic
#061808 #124718 #1F7828 #2CA938 #43CE51

Accessibility & contrast

On white

5.56
#1F7828 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#1F7828 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7828
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7828#FFFFFF#000000##FFFFFF
##1F78281.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6C1E
Deuteranopia (green-blind)
#70652F
Tritanopia (blue-blind)
#007567
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #1f7828;
/* rgb */ color: rgb(31, 120, 40);
/* oklch */ color: oklch(50.4% 0.142 144.5);
Tailwind
colors: {
  custom: {
    50: '#69a066',
    500: '#1f7828',
    950: '#000000',
  },
}
SCSS
$custom: #1f7828;
$custom-light: #69a066;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7828",
  "rgb": {
    "r": 31,
    "g": 120,
    "b": 40
  },
  "hsl": {
    "h": 126.067,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.50353,
    "c": 0.14234,
    "h": 144.5
  },
  "luminance": 0.13877
}

Semantic roles & 50–950 ramp

primary
#1F7828
secondary
#AB47A1
accent
#46D2E2
background
#F6F9F6
surface
#ECF2EB
border
#C7CCC6
text
#070F06
muted
#7A7E7A

Preview Lab

Preview with #1F7828

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

Preview Lab → · Contrast checker → · Palette generator →

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