#1F8F26#1F8F26

#1F8F26 is a mid, vivid green. Relative luminance 0.201; OKLCH L 56.9% C 0.172 H 143.6°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#1F8F26
RGBrgb(31, 143, 38)
HSLhsl(124, 64%, 34%)
HSVhsv(124, 78%, 56%)
CMYKcmyk(78.3%, 0%, 73.4%, 43.9%)
CIE-LABlab(51.92, -51.06, 44.81)
CIE-LCHlch(51.92, 67.94, 138.73°)
OKLaboklab(56.88% -0.1383 0.102)
OKLCHoklch(56.88% 0.172 143.6)
XYZxyz(10.7367, 20.0749, 5.1423)
Luminance0.2008 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8F26 #8F1F88
analogous
#508F1F #1F8F26 #1F8F5E
triadic
#1F8F26 #261F8F #8F261F
tetradic
#1F8F26 #1F508F #8F1F88 #8F5E1F
square
#1F8F26 #1F508F #8F1F88 #8F5E1F
split-complementary
#1F8F26 #5E1F8F #8F1F50
monochromatic
#092A0B #145D19 #1F8F26 #2AC133 #4FD958

Accessibility & contrast

On white

4.19
#1F8F26 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#1F8F26 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8F26
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8F26#FFFFFF#000000##000000
##1F8F261.004.195.025.02
#FFFFFF4.191.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#928114
Deuteranopia (green-blind)
#867831
Tritanopia (blue-blind)
#008B7A
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #1f8f26;
/* rgb */ color: rgb(31, 143, 38);
/* oklch */ color: oklch(56.9% 0.172 143.6);
Tailwind
colors: {
  custom: {
    50: '#6fb167',
    500: '#1f8f26',
    950: '#000000',
  },
}
SCSS
$custom: #1f8f26;
$custom-light: #6fb167;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8f26",
  "rgb": {
    "r": 31,
    "g": 143,
    "b": 38
  },
  "hsl": {
    "h": 123.75,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.56877,
    "c": 0.17181,
    "h": 143.6
  },
  "luminance": 0.20076
}

Semantic roles & 50–950 ramp

primary
#1F8F26
secondary
#BC4EB5
accent
#40DDE7
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#091106
muted
#7B807A

Preview Lab

Preview with #1F8F26

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

Preview Lab → · Contrast checker → · Palette generator →

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