#1F874A#1F874A

#1F874A is a mid, vivid green. Relative luminance 0.181; OKLCH L 55.1% C 0.131 H 152.4°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#1F874A
RGBrgb(31, 135, 74)
HSLhsl(145, 63%, 33%)
HSVhsv(145, 77%, 53%)
CMYKcmyk(77%, 0%, 45.2%, 47.1%)
CIE-LABlab(49.63, -43.26, 24.70)
CIE-LCHlch(49.63, 49.81, 150.28°)
OKLaboklab(55.11% -0.1164 0.0609)
OKLCHoklch(55.11% 0.131 152.4)
XYZxyz(10.4641, 18.1124, 9.4218)
Luminance0.1811 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F874A #871F5C
analogous
#28871F #1F874A #1F877E
triadic
#1F874A #4A1F87 #874A1F
tetradic
#1F874A #1F2887 #871F5C #877E1F
square
#1F874A #1F2887 #871F5C #877E1F
split-complementary
#1F874A #7E1F87 #871F28
monochromatic
#082313 #14552F #1F874A #2AB965 #4BD684

Accessibility & contrast

On white

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

On black

4.62
#1F874A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F874A
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F874A#FFFFFF#000000##000000
##1F874A1.004.544.624.62
#FFFFFF4.541.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#877B45
Deuteranopia (green-blind)
#7B734E
Tritanopia (blue-blind)
#008578
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #1f874a;
/* rgb */ color: rgb(31, 135, 74);
/* oklch */ color: oklch(55.1% 0.131 152.4);
Tailwind
colors: {
  custom: {
    50: '#6cab7d',
    500: '#1f874a',
    950: '#000000',
  },
}
SCSS
$custom: #1f874a;
$custom-light: #6cab7d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f874a",
  "rgb": {
    "r": 31,
    "g": 135,
    "b": 74
  },
  "hsl": {
    "h": 144.808,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.55114,
    "c": 0.13136,
    "h": 152.4
  },
  "luminance": 0.18114
}

Semantic roles & 50–950 ramp

primary
#1F874A
secondary
#B84A8A
accent
#42A2E6
background
#F6FAF7
surface
#ECF4EE
border
#C7CEC9
text
#08100A
muted
#7A7F7C

Preview Lab

Preview with #1F874A

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

Preview Lab → · Contrast checker → · Palette generator →

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