#1F7B2D#1F7B2D

#1F7B2D is a mid, vivid green. Relative luminance 0.146; OKLCH L 51.3% C 0.142 H 145.4°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#1F7B2D
RGBrgb(31, 123, 45)
HSLhsl(129, 60%, 30%)
HSVhsv(129, 75%, 48%)
CMYKcmyk(74.8%, 0%, 63.4%, 51.8%)
CIE-LABlab(45.15, -43.33, 34.38)
CIE-LCHlch(45.15, 55.31, 141.58°)
OKLaboklab(51.27% -0.117 0.0807)
OKLCHoklch(51.27% 0.142 145.4)
XYZxyz(8.1211, 14.6458, 4.8810)
Luminance0.1465 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7B2D #7B1F6D
analogous
#3F7B1F #1F7B2D #1F7B5B
triadic
#1F7B2D #2D1F7B #7B2D1F
tetradic
#1F7B2D #1F3F7B #7B1F6D #7B5B1F
square
#1F7B2D #1F3F7B #7B1F6D #7B5B1F
split-complementary
#1F7B2D #5B1F7B #7B1F3F
monochromatic
#061909 #134A1B #1F7B2D #2BAC3F #44D05A

Accessibility & contrast

On white

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

On black

3.93
#1F7B2D on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##1F7B2D#FFFFFF#000000##FFFFFF
##1F7B2D1.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6F24
Deuteranopia (green-blind)
#726834
Tritanopia (blue-blind)
#00786A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #1f7b2d;
/* rgb */ color: rgb(31, 123, 45);
/* oklch */ color: oklch(51.3% 0.142 145.4);
Tailwind
colors: {
  custom: {
    50: '#6aa269',
    500: '#1f7b2d',
    950: '#000000',
  },
}
SCSS
$custom: #1f7b2d;
$custom-light: #6aa269;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7b2d",
  "rgb": {
    "r": 31,
    "g": 123,
    "b": 45
  },
  "hsl": {
    "h": 129.13,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.51273,
    "c": 0.14212,
    "h": 145.4
  },
  "luminance": 0.14647
}

Semantic roles & 50–950 ramp

primary
#1F7B2D
secondary
#AE489F
accent
#45CBE3
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F06
muted
#7A7F7A

Preview Lab

Preview with #1F7B2D

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

Preview Lab → · Contrast checker → · Palette generator →

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