#1F873A#1F873A

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

Color values

HEX#1F873A
RGBrgb(31, 135, 58)
HSLhsl(136, 63%, 33%)
HSVhsv(136, 77%, 53%)
CMYKcmyk(77%, 0%, 57%, 47.1%)
CIE-LABlab(49.40, -45.93, 32.89)
CIE-LCHlch(49.40, 56.49, 144.39°)
OKLaboklab(54.85% -0.1236 0.0786)
OKLCHoklch(54.85% 0.146 147.5)
XYZxyz(9.9920, 17.9236, 6.9352)
Luminance0.1792 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F873A #871F6C
analogous
#38871F #1F873A #1F876E
triadic
#1F873A #3A1F87 #873A1F
tetradic
#1F873A #1F3887 #871F6C #876E1F
square
#1F873A #1F3887 #871F6C #876E1F
split-complementary
#1F873A #6E1F87 #871F38
monochromatic
#08230F #145525 #1F873A #2AB94F #4BD66F

Accessibility & contrast

On white

4.58
#1F873A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F873A#FFFFFF#000000##000000
##1F873A1.004.584.594.59
#FFFFFF4.581.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#897A33
Deuteranopia (green-blind)
#7D7240
Tritanopia (blue-blind)
#008476
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #1f873a;
/* rgb */ color: rgb(31, 135, 58);
/* oklch */ color: oklch(54.9% 0.146 147.5);
Tailwind
colors: {
  custom: {
    50: '#6cab72',
    500: '#1f873a',
    950: '#000000',
  },
}
SCSS
$custom: #1f873a;
$custom-light: #6cab72;
$custom-dark: #000000;
JSON
{
  "hex": "#1f873a",
  "rgb": {
    "r": 31,
    "g": 135,
    "b": 58
  },
  "hsl": {
    "h": 135.577,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.5485,
    "c": 0.14645,
    "h": 147.5
  },
  "luminance": 0.17925
}

Semantic roles & 50–950 ramp

primary
#1F873A
secondary
#B84A9B
accent
#42BBE6
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#081008
muted
#7B7F7B

Preview Lab

Preview with #1F873A

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

Preview Lab → · Contrast checker → · Palette generator →

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