#1F873E#1F873E

#1F873E is a mid, vivid green. Relative luminance 0.180; OKLCH L 54.9% C 0.143 H 148.6°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#1F873E
RGBrgb(31, 135, 62)
HSLhsl(138, 63%, 33%)
HSVhsv(138, 77%, 53%)
CMYKcmyk(77%, 0%, 54.1%, 47.1%)
CIE-LABlab(49.45, -45.32, 30.90)
CIE-LCHlch(49.45, 54.85, 145.72°)
OKLaboklab(54.91% -0.1219 0.0744)
OKLCHoklch(54.91% 0.143 148.6)
XYZxyz(10.0977, 17.9659, 7.4921)
Luminance0.1797 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F873E #871F68
analogous
#34871F #1F873E #1F8772
triadic
#1F873E #3E1F87 #873E1F
tetradic
#1F873E #1F3487 #871F68 #87721F
square
#1F873E #1F3487 #871F68 #87721F
split-complementary
#1F873E #721F87 #871F34
monochromatic
#082310 #145527 #1F873E #2AB955 #4BD674

Accessibility & contrast

On white

4.57
#1F873E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#1F873E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F873E
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F873E#FFFFFF#000000##000000
##1F873E1.004.574.594.59
#FFFFFF4.571.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#887B38
Deuteranopia (green-blind)
#7C7243
Tritanopia (blue-blind)
#008476
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #1f873e;
/* rgb */ color: rgb(31, 135, 62);
/* oklch */ color: oklch(54.9% 0.143 148.6);
Tailwind
colors: {
  custom: {
    50: '#6cab75',
    500: '#1f873e',
    950: '#000000',
  },
}
SCSS
$custom: #1f873e;
$custom-light: #6cab75;
$custom-dark: #000000;
JSON
{
  "hex": "#1f873e",
  "rgb": {
    "r": 31,
    "g": 135,
    "b": 62
  },
  "hsl": {
    "h": 137.885,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.54909,
    "c": 0.1428,
    "h": 148.6
  },
  "luminance": 0.17967
}

Semantic roles & 50–950 ramp

primary
#1F873E
secondary
#B84A97
accent
#42B5E6
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#081008
muted
#7B7F7B

Preview Lab

Preview with #1F873E

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

Preview Lab → · Contrast checker → · Palette generator →

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