#1F7F4E#1F7F4E

#1F7F4E is a mid, moderate green. Relative luminance 0.160; OKLCH L 53.0% C 0.116 H 155.8°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#1F7F4E
RGBrgb(31, 127, 78)
HSLhsl(149, 61%, 31%)
HSVhsv(149, 76%, 50%)
CMYKcmyk(75.6%, 0%, 38.6%, 50.2%)
CIE-LABlab(47.00, -39.27, 19.00)
CIE-LCHlch(47.00, 43.63, 154.18°)
OKLaboklab(52.96% -0.1061 0.0476)
OKLCHoklch(52.96% 0.116 155.8)
XYZxyz(9.5287, 16.0190, 9.7960)
Luminance0.1602 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7F4E #7F1F50
analogous
#207F1F #1F7F4E #1F7F7E
triadic
#1F7F4E #4E1F7F #7F4E1F
tetradic
#1F7F4E #1F207F #7F1F50 #7F7E1F
square
#1F7F4E #1F207F #7F1F50 #7F7E1F
split-complementary
#1F7F4E #7E1F7F #7F1F20
monochromatic
#071D12 #134E30 #1F7F4E #2BB06C #46D28B

Accessibility & contrast

On white

5.00
#1F7F4E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#1F7F4E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7F4E
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7F4E#FFFFFF#000000##FFFFFF
##1F7F4E1.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E744B
Deuteranopia (green-blind)
#736C51
Tritanopia (blue-blind)
#007E73
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #1f7f4e;
/* rgb */ color: rgb(31, 127, 78);
/* oklch */ color: oklch(53.0% 0.116 155.8);
Tailwind
colors: {
  custom: {
    50: '#6aa580',
    500: '#1f7f4e',
    950: '#000000',
  },
}
SCSS
$custom: #1f7f4e;
$custom-light: #6aa580;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7f4e",
  "rgb": {
    "r": 31,
    "g": 127,
    "b": 78
  },
  "hsl": {
    "h": 149.375,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.52964,
    "c": 0.1163,
    "h": 155.8
  },
  "luminance": 0.1602
}

Semantic roles & 50–950 ramp

primary
#1F7F4E
secondary
#B2487E
accent
#4496E4
background
#F6FAF7
surface
#ECF4EE
border
#C7CEC9
text
#070F0A
muted
#7A7F7C

Preview Lab

Preview with #1F7F4E

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

Preview Lab → · Contrast checker → · Palette generator →

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