#1F7D3A#1F7D3A

#1F7D3A is a mid, vivid green. Relative luminance 0.153; OKLCH L 52.0% C 0.133 H 148.6°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#1F7D3A
RGBrgb(31, 125, 58)
HSLhsl(137, 60%, 31%)
HSVhsv(137, 75%, 49%)
CMYKcmyk(75.2%, 0%, 53.6%, 51%)
CIE-LABlab(45.99, -42.20, 28.75)
CIE-LCHlch(45.99, 51.07, 145.74°)
OKLaboklab(52.03% -0.1136 0.0694)
OKLCHoklch(52.03% 0.133 148.6)
XYZxyz(8.6617, 15.2630, 6.4917)
Luminance0.1526 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7D3A #7D1F62
analogous
#337D1F #1F7D3A #1F7D69
triadic
#1F7D3A #3A1F7D #7D3A1F
tetradic
#1F7D3A #1F337D #7D1F62 #7D691F
square
#1F7D3A #1F337D #7D1F62 #7D691F
split-complementary
#1F7D3A #691F7D #7D1F33
monochromatic
#071B0C #134C23 #1F7D3A #2BAE51 #45D16E

Accessibility & contrast

On white

5.18
#1F7D3A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#1F7D3A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7D3A
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7D3A#FFFFFF#000000##FFFFFF
##1F7D3A1.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E7234
Deuteranopia (green-blind)
#736A3F
Tritanopia (blue-blind)
#007A6E
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #1f7d3a;
/* rgb */ color: rgb(31, 125, 58);
/* oklch */ color: oklch(52.0% 0.133 148.6);
Tailwind
colors: {
  custom: {
    50: '#6aa472',
    500: '#1f7d3a',
    950: '#000000',
  },
}
SCSS
$custom: #1f7d3a;
$custom-light: #6aa472;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7d3a",
  "rgb": {
    "r": 31,
    "g": 125,
    "b": 58
  },
  "hsl": {
    "h": 137.234,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.52026,
    "c": 0.13309,
    "h": 148.6
  },
  "luminance": 0.15264
}

Semantic roles & 50–950 ramp

primary
#1F7D3A
secondary
#B04892
accent
#44B6E3
background
#F6FAF6
surface
#ECF4EC
border
#C7CEC7
text
#070F08
muted
#7A7F7B

Preview Lab

Preview with #1F7D3A

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

Preview Lab → · Contrast checker → · Palette generator →

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