#1F873F#1F873F

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

Color values

HEX#1F873F
RGBrgb(31, 135, 63)
HSLhsl(138, 63%, 33%)
HSVhsv(138, 77%, 53%)
CMYKcmyk(77%, 0%, 53.3%, 47.1%)
CIE-LABlab(49.47, -45.17, 30.39)
CIE-LCHlch(49.47, 54.44, 146.06°)
OKLaboklab(54.93% -0.1214 0.0734)
OKLCHoklch(54.93% 0.142 148.9)
XYZxyz(10.1254, 17.9770, 7.6379)
Luminance0.1798 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F873F #871F67
analogous
#33871F #1F873F #1F8773
triadic
#1F873F #3F1F87 #873F1F
tetradic
#1F873F #1F3387 #871F67 #87731F
square
#1F873F #1F3387 #871F67 #87731F
split-complementary
#1F873F #731F87 #871F33
monochromatic
#082311 #145528 #1F873F #2AB956 #4BD676

Accessibility & contrast

On white

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

On black

4.60
#1F873F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F873F
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F873F#FFFFFF#000000##000000
##1F873F1.004.574.604.60
#FFFFFF4.571.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f873f;
/* rgb */ color: rgb(31, 135, 63);
/* oklch */ color: oklch(54.9% 0.142 148.9);
Tailwind
colors: {
  custom: {
    50: '#6cab76',
    500: '#1f873f',
    950: '#000000',
  },
}
SCSS
$custom: #1f873f;
$custom-light: #6cab76;
$custom-dark: #000000;
JSON
{
  "hex": "#1f873f",
  "rgb": {
    "r": 31,
    "g": 135,
    "b": 63
  },
  "hsl": {
    "h": 138.462,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.54925,
    "c": 0.14187,
    "h": 148.9
  },
  "luminance": 0.17978
}

Semantic roles & 50–950 ramp

primary
#1F873F
secondary
#B84A96
accent
#42B3E6
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#081008
muted
#7B7F7B

Preview Lab

Preview with #1F873F

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

Preview Lab → · Contrast checker → · Palette generator →

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