#1F7D1B#1F7D1B

#1F7D1B is a mid, vivid green. Relative luminance 0.150; OKLCH L 51.7% C 0.157 H 142.4°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#1F7D1B
RGBrgb(31, 125, 27)
HSLhsl(118, 64%, 30%)
HSVhsv(118, 78%, 49%)
CMYKcmyk(75.2%, 0%, 78.4%, 51%)
CIE-LABlab(45.68, -45.89, 42.69)
CIE-LCHlch(45.68, 62.67, 137.07°)
OKLaboklab(51.67% -0.1248 0.096)
OKLCHoklch(51.67% 0.157 142.4)
XYZxyz(8.0960, 15.0368, 3.5124)
Luminance0.1504 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7D1B #791B7D
analogous
#507D1B #1F7D1B #1B7D48
triadic
#1F7D1B #1B1F7D #7D1B1F
tetradic
#1F7D1B #1B507D #791B7D #7D481B
square
#1F7D1B #1B507D #791B7D #7D481B
split-complementary
#1F7D1B #481B7D #7D1B50
monochromatic
#061905 #134B10 #1F7D1B #2BAF26 #43D53D

Accessibility & contrast

On white

5.24
#1F7D1B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#1F7D1B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7D1B
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7D1B#FFFFFF#000000##FFFFFF
##1F7D1B1.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807105
Deuteranopia (green-blind)
#756926
Tritanopia (blue-blind)
#00796A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #1f7d1b;
/* rgb */ color: rgb(31, 125, 27);
/* oklch */ color: oklch(51.7% 0.157 142.4);
Tailwind
colors: {
  custom: {
    50: '#6ba45f',
    500: '#1f7d1b',
    950: '#000000',
  },
}
SCSS
$custom: #1f7d1b;
$custom-light: #6ba45f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7d1b",
  "rgb": {
    "r": 31,
    "g": 125,
    "b": 27
  },
  "hsl": {
    "h": 117.551,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.51672,
    "c": 0.15743,
    "h": 142.4
  },
  "luminance": 0.15038
}

Semantic roles & 50–950 ramp

primary
#1F7D1B
secondary
#AC43B1
accent
#40E7E1
background
#F6FAF5
surface
#ECF4EA
border
#C7CEC6
text
#080F05
muted
#7A7F79

Preview Lab

Preview with #1F7D1B

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

Preview Lab → · Contrast checker → · Palette generator →

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