#1F7C2D#1F7C2D

#1F7C2D is a mid, vivid green. Relative luminance 0.149; OKLCH L 51.6% C 0.143 H 145.3°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#1F7C2D
RGBrgb(31, 124, 45)
HSLhsl(129, 60%, 30%)
HSVhsv(129, 75%, 49%)
CMYKcmyk(75%, 0%, 63.7%, 51.4%)
CIE-LABlab(45.49, -43.70, 34.77)
CIE-LCHlch(45.49, 55.84, 141.49°)
OKLaboklab(51.56% -0.118 0.0816)
OKLCHoklch(51.56% 0.143 145.3)
XYZxyz(8.2458, 14.8951, 4.9226)
Luminance0.1490 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7C2D #7C1F6E
analogous
#407C1F #1F7C2D #1F7C5B
triadic
#1F7C2D #2D1F7C #7C2D1F
tetradic
#1F7C2D #1F407C #7C1F6E #7C5B1F
square
#1F7C2D #1F407C #7C1F6E #7C5B1F
split-complementary
#1F7C2D #5B1F7C #7C1F40
monochromatic
#071A09 #134B1B #1F7C2D #2BAD3F #45D05A

Accessibility & contrast

On white

5.28
#1F7C2D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#1F7C2D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7C2D
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7C2D#FFFFFF#000000##FFFFFF
##1F7C2D1.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E7024
Deuteranopia (green-blind)
#736934
Tritanopia (blue-blind)
#00796B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #1f7c2d;
/* rgb */ color: rgb(31, 124, 45);
/* oklch */ color: oklch(51.6% 0.143 145.3);
Tailwind
colors: {
  custom: {
    50: '#6aa369',
    500: '#1f7c2d',
    950: '#000000',
  },
}
SCSS
$custom: #1f7c2d;
$custom-light: #6aa369;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7c2d",
  "rgb": {
    "r": 31,
    "g": 124,
    "b": 45
  },
  "hsl": {
    "h": 129.032,
    "s": 60,
    "l": 30.392
  },
  "oklch": {
    "l": 0.51559,
    "c": 0.14341,
    "h": 145.3
  },
  "luminance": 0.14896
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F7C2D

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

Preview Lab → · Contrast checker → · Palette generator →

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