#1F7628#1F7628

#1F7628 is a mid, vivid green. Relative luminance 0.134; OKLCH L 49.8% C 0.140 H 144.6°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#1F7628
RGBrgb(31, 118, 40)
HSLhsl(126, 58%, 29%)
HSVhsv(126, 74%, 46%)
CMYKcmyk(73.7%, 0%, 66.1%, 53.7%)
CIE-LABlab(43.36, -42.11, 34.76)
CIE-LCHlch(43.36, 54.60, 140.47°)
OKLaboklab(49.78% -0.1139 0.081)
OKLCHoklch(49.78% 0.14 144.6)
XYZxyz(7.4260, 13.4006, 4.2023)
Luminance0.1340 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7628 #761F6D
analogous
#42761F #1F7628 #1F7654
triadic
#1F7628 #281F76 #76281F
tetradic
#1F7628 #1F4276 #761F6D #76541F
square
#1F7628 #1F4276 #761F6D #76541F
split-complementary
#1F7628 #541F76 #761F42
monochromatic
#061808 #124618 #1F7628 #2CA638 #42CD50

Accessibility & contrast

On white

5.71
#1F7628 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#1F7628 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7628
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7628#FFFFFF#000000##FFFFFF
##1F76281.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786B1F
Deuteranopia (green-blind)
#6E642F
Tritanopia (blue-blind)
#007366
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #1f7628;
/* rgb */ color: rgb(31, 118, 40);
/* oklch */ color: oklch(49.8% 0.140 144.6);
Tailwind
colors: {
  custom: {
    50: '#699e65',
    500: '#1f7628',
    950: '#000000',
  },
}
SCSS
$custom: #1f7628;
$custom-light: #699e65;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7628",
  "rgb": {
    "r": 31,
    "g": 118,
    "b": 40
  },
  "hsl": {
    "h": 126.207,
    "s": 58.389,
    "l": 29.216
  },
  "oklch": {
    "l": 0.49778,
    "c": 0.13977,
    "h": 144.6
  },
  "luminance": 0.13401
}

Semantic roles & 50–950 ramp

primary
#1F7628
secondary
#AA479F
accent
#46D2E2
background
#F6F9F6
surface
#ECF2EB
border
#C7CCC6
text
#070E06
muted
#7A7E7A

Preview Lab

Preview with #1F7628

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

Preview Lab → · Contrast checker → · Palette generator →

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