#1F874C#1F874C

#1F874C is a mid, vivid green. Relative luminance 0.181; OKLCH L 55.2% C 0.129 H 153.1°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#1F874C
RGBrgb(31, 135, 76)
HSLhsl(146, 63%, 33%)
HSVhsv(146, 77%, 53%)
CMYKcmyk(77%, 0%, 43.7%, 47.1%)
CIE-LABlab(49.67, -42.88, 23.64)
CIE-LCHlch(49.67, 48.96, 151.13°)
OKLaboklab(55.15% -0.1154 0.0585)
OKLCHoklch(55.15% 0.129 153.1)
XYZxyz(10.5326, 18.1398, 9.7823)
Luminance0.1814 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F874C #871F5A
analogous
#26871F #1F874C #1F8780
triadic
#1F874C #4C1F87 #874C1F
tetradic
#1F874C #1F2687 #871F5A #87801F
square
#1F874C #1F2687 #871F5A #87801F
split-complementary
#1F874C #801F87 #871F26
monochromatic
#082314 #145530 #1F874C #2AB968 #4BD687

Accessibility & contrast

On white

4.54
#1F874C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#1F874C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F874C
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F874C#FFFFFF#000000##000000
##1F874C1.004.544.634.63
#FFFFFF4.541.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#877B48
Deuteranopia (green-blind)
#7B7350
Tritanopia (blue-blind)
#008579
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #1f874c;
/* rgb */ color: rgb(31, 135, 76);
/* oklch */ color: oklch(55.2% 0.129 153.1);
Tailwind
colors: {
  custom: {
    50: '#6cab7f',
    500: '#1f874c',
    950: '#000000',
  },
}
SCSS
$custom: #1f874c;
$custom-light: #6cab7f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f874c",
  "rgb": {
    "r": 31,
    "g": 135,
    "b": 76
  },
  "hsl": {
    "h": 145.962,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.55152,
    "c": 0.12941,
    "h": 153.1
  },
  "luminance": 0.18141
}

Semantic roles & 50–950 ramp

primary
#1F874C
secondary
#B84A88
accent
#429FE6
background
#F6FAF7
surface
#ECF4EE
border
#C7CEC9
text
#08100A
muted
#7A7F7C

Preview Lab

Preview with #1F874C

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

Preview Lab → · Contrast checker → · Palette generator →

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