#1F7A48#1F7A48

#1F7A48 is a mid, moderate green. Relative luminance 0.147; OKLCH L 51.4% C 0.115 H 154.3°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#1F7A48
RGBrgb(31, 122, 72)
HSLhsl(147, 59%, 30%)
HSVhsv(147, 75%, 48%)
CMYKcmyk(74.6%, 0%, 41%, 52.2%)
CIE-LABlab(45.19, -38.47, 20.01)
CIE-LCHlch(45.19, 43.36, 152.52°)
OKLaboklab(51.43% -0.1038 0.0499)
OKLCHoklch(51.43% 0.115 154.3)
XYZxyz(8.6935, 14.6773, 8.5045)
Luminance0.1468 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7A48 #7A1F51
analogous
#247A1F #1F7A48 #1F7A75
triadic
#1F7A48 #481F7A #7A481F
tetradic
#1F7A48 #1F247A #7A1F51 #7A751F
square
#1F7A48 #1F247A #7A1F51 #7A751F
split-complementary
#1F7A48 #751F7A #7A1F24
monochromatic
#06180E #13492B #1F7A48 #2BAB65 #44CF83

Accessibility & contrast

On white

5.34
#1F7A48 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #1F7A48
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7A48#FFFFFF#000000##FFFFFF
##1F7A481.005.343.945.34
#FFFFFF5.341.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A7045
Deuteranopia (green-blind)
#6F684B
Tritanopia (blue-blind)
#00796D
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #1f7a48;
/* rgb */ color: rgb(31, 122, 72);
/* oklch */ color: oklch(51.4% 0.115 154.3);
Tailwind
colors: {
  custom: {
    50: '#69a17b',
    500: '#1f7a48',
    950: '#000000',
  },
}
SCSS
$custom: #1f7a48;
$custom-light: #69a17b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7a48",
  "rgb": {
    "r": 31,
    "g": 122,
    "b": 72
  },
  "hsl": {
    "h": 147.033,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.51435,
    "c": 0.11515,
    "h": 154.3
  },
  "luminance": 0.14678
}

Semantic roles & 50–950 ramp

primary
#1F7A48
secondary
#AD477F
accent
#459CE3
background
#F6FAF7
surface
#EBF3EE
border
#C6CDC9
text
#070F09
muted
#7A7F7B

Preview Lab

Preview with #1F7A48

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

Preview Lab → · Contrast checker → · Palette generator →

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