#1F7D26#1F7D26

#1F7D26 is a mid, vivid green. Relative luminance 0.151; OKLCH L 51.8% C 0.150 H 144.0°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#1F7D26
RGBrgb(31, 125, 38)
HSLhsl(124, 60%, 31%)
HSVhsv(124, 75%, 49%)
CMYKcmyk(75.2%, 0%, 69.6%, 51%)
CIE-LABlab(45.77, -44.88, 38.32)
CIE-LCHlch(45.77, 59.01, 139.51°)
OKLaboklab(51.77% -0.1215 0.0883)
OKLCHoklch(51.77% 0.15 144)
XYZxyz(8.2480, 15.0975, 4.3128)
Luminance0.1510 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7D26 #7D1F76
analogous
#477D1F #1F7D26 #1F7D55
triadic
#1F7D26 #261F7D #7D261F
tetradic
#1F7D26 #1F477D #7D1F76 #7D551F
square
#1F7D26 #1F477D #7D1F76 #7D551F
split-complementary
#1F7D26 #551F7D #7D1F47
monochromatic
#071B08 #134C17 #1F7D26 #2BAE35 #45D150

Accessibility & contrast

On white

5.22
#1F7D26 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#1F7D26 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7D26
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7D26#FFFFFF#000000##FFFFFF
##1F7D261.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F711A
Deuteranopia (green-blind)
#75692E
Tritanopia (blue-blind)
#00796B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #1f7d26;
/* rgb */ color: rgb(31, 125, 38);
/* oklch */ color: oklch(51.8% 0.150 144.0);
Tailwind
colors: {
  custom: {
    50: '#6ba465',
    500: '#1f7d26',
    950: '#000000',
  },
}
SCSS
$custom: #1f7d26;
$custom-light: #6ba465;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7d26",
  "rgb": {
    "r": 31,
    "g": 125,
    "b": 38
  },
  "hsl": {
    "h": 124.468,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.51767,
    "c": 0.15019,
    "h": 144
  },
  "luminance": 0.15098
}

Semantic roles & 50–950 ramp

primary
#1F7D26
secondary
#B048A8
accent
#44D8E3
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F06
muted
#7A7F7A

Preview Lab

Preview with #1F7D26

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

Preview Lab → · Contrast checker → · Palette generator →

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