#1F7D1D#1F7D1D

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

Color values

HEX#1F7D1D
RGBrgb(31, 125, 29)
HSLhsl(119, 62%, 30%)
HSVhsv(119, 77%, 49%)
CMYKcmyk(75.2%, 0%, 76.8%, 51%)
CIE-LABlab(45.70, -45.72, 41.96)
CIE-LCHlch(45.70, 62.06, 137.46°)
OKLaboklab(51.69% -0.1242 0.0948)
OKLCHoklch(51.69% 0.156 142.7)
XYZxyz(8.1200, 15.0463, 3.6385)
Luminance0.1505 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7D1D #7B1D7D
analogous
#4F7D1D #1F7D1D #1D7D4B
triadic
#1F7D1D #1D1F7D #7D1D1F
tetradic
#1F7D1D #1D4F7D #7B1D7D #7D4B1D
square
#1F7D1D #1D4F7D #7B1D7D #7D4B1D
split-complementary
#1F7D1D #4B1D7D #7D1D4F
monochromatic
#061A06 #134B11 #1F7D1D #2BAF29 #44D341

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F7D1D#FFFFFF#000000##FFFFFF
##1F7D1D1.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)
#80710A
Deuteranopia (green-blind)
#756927
Tritanopia (blue-blind)
#00796B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #1f7d1d;
/* rgb */ color: rgb(31, 125, 29);
/* oklch */ color: oklch(51.7% 0.156 142.7);
Tailwind
colors: {
  custom: {
    50: '#6ba460',
    500: '#1f7d1d',
    950: '#000000',
  },
}
SCSS
$custom: #1f7d1d;
$custom-light: #6ba460;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7d1d",
  "rgb": {
    "r": 31,
    "g": 125,
    "b": 29
  },
  "hsl": {
    "h": 118.75,
    "s": 62.338,
    "l": 30.196
  },
  "oklch": {
    "l": 0.51687,
    "c": 0.15625,
    "h": 142.7
  },
  "luminance": 0.15047
}

Semantic roles & 50–950 ramp

primary
#1F7D1D
secondary
#AE45B1
accent
#42E5E2
background
#F6FAF5
surface
#ECF4EA
border
#C7CEC6
text
#080F05
muted
#7A7F79

Preview Lab

Preview with #1F7D1D

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

Preview Lab → · Contrast checker → · Palette generator →

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