#1F8726#1F8726

#1F8726 is a mid, vivid green. Relative luminance 0.178; OKLCH L 54.6% C 0.162 H 143.7°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#1F8726
RGBrgb(31, 135, 38)
HSLhsl(124, 63%, 33%)
HSVhsv(124, 77%, 53%)
CMYKcmyk(77%, 0%, 71.9%, 47.1%)
CIE-LABlab(49.20, -48.36, 41.98)
CIE-LCHlch(49.20, 64.04, 139.04°)
OKLaboklab(54.62% -0.1309 0.096)
OKLCHoklch(54.62% 0.162 143.7)
XYZxyz(9.5783, 17.7581, 4.7562)
Luminance0.1776 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8726 #871F80
analogous
#4C871F #1F8726 #1F875A
triadic
#1F8726 #261F87 #87261F
tetradic
#1F8726 #1F4C87 #871F80 #875A1F
square
#1F8726 #1F4C87 #871F80 #875A1F
split-complementary
#1F8726 #5A1F87 #871F4C
monochromatic
#08230A #145518 #1F8726 #2AB934 #4BD654

Accessibility & contrast

On white

4.61
#1F8726 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#1F8726 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #1F8726
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8726#FFFFFF#000000##FFFFFF
##1F87261.004.614.554.61
#FFFFFF4.611.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A17
Deuteranopia (green-blind)
#7E7230
Tritanopia (blue-blind)
#008374
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #1f8726;
/* rgb */ color: rgb(31, 135, 38);
/* oklch */ color: oklch(54.6% 0.162 143.7);
Tailwind
colors: {
  custom: {
    50: '#6dab66',
    500: '#1f8726',
    950: '#000000',
  },
}
SCSS
$custom: #1f8726;
$custom-light: #6dab66;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8726",
  "rgb": {
    "r": 31,
    "g": 135,
    "b": 38
  },
  "hsl": {
    "h": 124.038,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.54617,
    "c": 0.16238,
    "h": 143.7
  },
  "luminance": 0.17759
}

Semantic roles & 50–950 ramp

primary
#1F8726
secondary
#B84AB1
accent
#42DBE6
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #1F8726

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

Preview Lab → · Contrast checker → · Palette generator →

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