#1F874B#1F874B

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

Color values

HEX#1F874B
RGBrgb(31, 135, 75)
HSLhsl(145, 63%, 33%)
HSVhsv(145, 77%, 53%)
CMYKcmyk(77%, 0%, 44.4%, 47.1%)
CIE-LABlab(49.65, -43.07, 24.17)
CIE-LCHlch(49.65, 49.39, 150.70°)
OKLaboklab(55.13% -0.1159 0.0597)
OKLCHoklch(55.13% 0.13 152.7)
XYZxyz(10.4981, 18.1260, 9.6006)
Luminance0.1813 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F874B #871F5B
analogous
#27871F #1F874B #1F877F
triadic
#1F874B #4B1F87 #874B1F
tetradic
#1F874B #1F2787 #871F5B #877F1F
square
#1F874B #1F2787 #871F5B #877F1F
split-complementary
#1F874B #7F1F87 #871F27
monochromatic
#082314 #14552F #1F874B #2AB967 #4BD686

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F874B#FFFFFF#000000##000000
##1F874B1.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)
#877B47
Deuteranopia (green-blind)
#7B734F
Tritanopia (blue-blind)
#008578
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #1f874b;
/* rgb */ color: rgb(31, 135, 75);
/* oklch */ color: oklch(55.1% 0.130 152.7);
Tailwind
colors: {
  custom: {
    50: '#6cab7e',
    500: '#1f874b',
    950: '#000000',
  },
}
SCSS
$custom: #1f874b;
$custom-light: #6cab7e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f874b",
  "rgb": {
    "r": 31,
    "g": 135,
    "b": 75
  },
  "hsl": {
    "h": 145.385,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.55133,
    "c": 0.13039,
    "h": 152.7
  },
  "luminance": 0.18127
}

Semantic roles & 50–950 ramp

primary
#1F874B
secondary
#B84A89
accent
#42A0E6
background
#F6FAF7
surface
#ECF4EE
border
#C7CEC9
text
#08100A
muted
#7A7F7C

Preview Lab

Preview with #1F874B

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

Preview Lab → · Contrast checker → · Palette generator →

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