#1F7A4B#1F7A4B

#1F7A4B is a mid, moderate green. Relative luminance 0.147; OKLCH L 51.5% C 0.112 H 155.8°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#1F7A4B
RGBrgb(31, 122, 75)
HSLhsl(149, 59%, 30%)
HSVhsv(149, 75%, 48%)
CMYKcmyk(74.6%, 0%, 38.5%, 52.2%)
CIE-LABlab(45.24, -37.84, 18.37)
CIE-LCHlch(45.24, 42.07, 154.11°)
OKLaboklab(51.5% -0.1023 0.046)
OKLCHoklch(51.5% 0.112 155.8)
XYZxyz(8.7938, 14.7174, 9.0325)
Luminance0.1472 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7A4B #7A1F4E
analogous
#217A1F #1F7A4B #1F7A78
triadic
#1F7A4B #4B1F7A #7A4B1F
tetradic
#1F7A4B #1F217A #7A1F4E #7A781F
square
#1F7A4B #1F217A #7A1F4E #7A781F
split-complementary
#1F7A4B #781F7A #7A1F21
monochromatic
#06180F #13492D #1F7A4B #2BAB69 #44CF87

Accessibility & contrast

On white

5.33
#1F7A4B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#1F7A4B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7A4B
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7A4B#FFFFFF#000000##FFFFFF
##1F7A4B1.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#797048
Deuteranopia (green-blind)
#6E684E
Tritanopia (blue-blind)
#00796E
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #1f7a4b;
/* rgb */ color: rgb(31, 122, 75);
/* oklch */ color: oklch(51.5% 0.112 155.8);
Tailwind
colors: {
  custom: {
    50: '#69a17d',
    500: '#1f7a4b',
    950: '#000000',
  },
}
SCSS
$custom: #1f7a4b;
$custom-light: #69a17d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7a4b",
  "rgb": {
    "r": 31,
    "g": 122,
    "b": 75
  },
  "hsl": {
    "h": 149.011,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.51499,
    "c": 0.11217,
    "h": 155.8
  },
  "luminance": 0.14718
}

Semantic roles & 50–950 ramp

primary
#1F7A4B
secondary
#AD477C
accent
#4596E3
background
#F6FAF7
surface
#EBF3EE
border
#C6CDC9
text
#070F09
muted
#7A7F7B

Preview Lab

Preview with #1F7A4B

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

Preview Lab → · Contrast checker → · Palette generator →

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