#1F7B1D#1F7B1D

#1F7B1D is a mid, vivid green. Relative luminance 0.145; OKLCH L 51.1% C 0.154 H 142.7°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#1F7B1D
RGBrgb(31, 123, 29)
HSLhsl(119, 62%, 30%)
HSVhsv(119, 76%, 48%)
CMYKcmyk(74.8%, 0%, 76.4%, 51.8%)
CIE-LABlab(45.00, -45.03, 41.26)
CIE-LCHlch(45.00, 61.07, 137.50°)
OKLaboklab(51.11% -0.1223 0.0933)
OKLCHoklch(51.11% 0.154 142.7)
XYZxyz(7.8693, 14.5451, 3.5549)
Luminance0.1455 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7B1D #791D7B
analogous
#4E7B1D #1F7B1D #1D7B4A
triadic
#1F7B1D #1D1F7B #7B1D1F
tetradic
#1F7B1D #1D4E7B #791D7B #7B4A1D
square
#1F7B1D #1D4E7B #791D7B #7B4A1D
split-complementary
#1F7B1D #4A1D7B #7B1D4E
monochromatic
#061906 #134911 #1F7B1D #2BAD29 #43D240

Accessibility & contrast

On white

5.37
#1F7B1D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#1F7B1D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7B1D
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7B1D#FFFFFF#000000##FFFFFF
##1F7B1D1.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F0B
Deuteranopia (green-blind)
#736827
Tritanopia (blue-blind)
#007769
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #1f7b1d;
/* rgb */ color: rgb(31, 123, 29);
/* oklch */ color: oklch(51.1% 0.154 142.7);
Tailwind
colors: {
  custom: {
    50: '#6ba260',
    500: '#1f7b1d',
    950: '#000000',
  },
}
SCSS
$custom: #1f7b1d;
$custom-light: #6ba260;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7b1d",
  "rgb": {
    "r": 31,
    "g": 123,
    "b": 29
  },
  "hsl": {
    "h": 118.723,
    "s": 61.842,
    "l": 29.804
  },
  "oklch": {
    "l": 0.51111,
    "c": 0.15386,
    "h": 142.7
  },
  "luminance": 0.14546
}

Semantic roles & 50–950 ramp

primary
#1F7B1D
secondary
#AC45AF
accent
#43E5E1
background
#F6FAF5
surface
#ECF4EA
border
#C7CEC6
text
#080F05
muted
#7A7F79

Preview Lab

Preview with #1F7B1D

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

Preview Lab → · Contrast checker → · Palette generator →

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