#1F7A4C#1F7A4C

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

Color values

HEX#1F7A4C
RGBrgb(31, 122, 76)
HSLhsl(150, 59%, 30%)
HSVhsv(150, 75%, 48%)
CMYKcmyk(74.6%, 0%, 37.7%, 52.2%)
CIE-LABlab(45.26, -37.63, 17.82)
CIE-LCHlch(45.26, 41.64, 154.66°)
OKLaboklab(51.52% -0.1018 0.0447)
OKLCHoklch(51.52% 0.111 156.3)
XYZxyz(8.8283, 14.7312, 9.2142)
Luminance0.1473 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7A4C #7A1F4D
analogous
#207A1F #1F7A4C #1F7A79
triadic
#1F7A4C #4C1F7A #7A4C1F
tetradic
#1F7A4C #1F207A #7A1F4D #7A791F
square
#1F7A4C #1F207A #7A1F4D #7A791F
split-complementary
#1F7A4C #791F7A #7A1F20
monochromatic
#06180F #13492E #1F7A4C #2BAB6A #44CF89

Accessibility & contrast

On white

5.32
#1F7A4C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#1F7A4C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7A4C
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7A4C#FFFFFF#000000##FFFFFF
##1F7A4C1.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f7a4c;
/* rgb */ color: rgb(31, 122, 76);
/* oklch */ color: oklch(51.5% 0.111 156.3);
Tailwind
colors: {
  custom: {
    50: '#69a17e',
    500: '#1f7a4c',
    950: '#000000',
  },
}
SCSS
$custom: #1f7a4c;
$custom-light: #69a17e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7a4c",
  "rgb": {
    "r": 31,
    "g": 122,
    "b": 76
  },
  "hsl": {
    "h": 149.67,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.51521,
    "c": 0.11118,
    "h": 156.3
  },
  "luminance": 0.14732
}

Semantic roles & 50–950 ramp

primary
#1F7A4C
secondary
#AD477B
accent
#4595E3
background
#F6FAF7
surface
#EBF3EE
border
#C6CDC9
text
#070F0A
muted
#7A7F7C

Preview Lab

Preview with #1F7A4C

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

Preview Lab → · Contrast checker → · Palette generator →

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