#1F873B#1F873B

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

Color values

HEX#1F873B
RGBrgb(31, 135, 59)
HSLhsl(136, 63%, 33%)
HSVhsv(136, 77%, 53%)
CMYKcmyk(77%, 0%, 56.3%, 47.1%)
CIE-LABlab(49.42, -45.78, 32.40)
CIE-LCHlch(49.42, 56.09, 144.72°)
OKLaboklab(54.86% -0.1232 0.0776)
OKLCHoklch(54.86% 0.146 147.8)
XYZxyz(10.0177, 17.9339, 7.0704)
Luminance0.1794 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F873B #871F6B
analogous
#37871F #1F873B #1F876F
triadic
#1F873B #3B1F87 #873B1F
tetradic
#1F873B #1F3787 #871F6B #876F1F
square
#1F873B #1F3787 #871F6B #876F1F
split-complementary
#1F873B #6F1F87 #871F37
monochromatic
#08230F #145525 #1F873B #2AB951 #4BD670

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F873B#FFFFFF#000000##000000
##1F873B1.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)
#887B34
Deuteranopia (green-blind)
#7D7241
Tritanopia (blue-blind)
#008476
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #1f873b;
/* rgb */ color: rgb(31, 135, 59);
/* oklch */ color: oklch(54.9% 0.146 147.8);
Tailwind
colors: {
  custom: {
    50: '#6cab73',
    500: '#1f873b',
    950: '#000000',
  },
}
SCSS
$custom: #1f873b;
$custom-light: #6cab73;
$custom-dark: #000000;
JSON
{
  "hex": "#1f873b",
  "rgb": {
    "r": 31,
    "g": 135,
    "b": 59
  },
  "hsl": {
    "h": 136.154,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.54864,
    "c": 0.14555,
    "h": 147.8
  },
  "luminance": 0.17935
}

Semantic roles & 50–950 ramp

primary
#1F873B
secondary
#B84A9A
accent
#42BAE6
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#081008
muted
#7B7F7B

Preview Lab

Preview with #1F873B

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

Preview Lab → · Contrast checker → · Palette generator →

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