#1F7D2B#1F7D2B

#1F7D2B is a mid, vivid green. Relative luminance 0.151; OKLCH L 51.8% C 0.146 H 144.9°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#1F7D2B
RGBrgb(31, 125, 43)
HSLhsl(128, 60%, 31%)
HSVhsv(128, 75%, 49%)
CMYKcmyk(75.2%, 0%, 65.6%, 51%)
CIE-LABlab(45.81, -44.31, 36.09)
CIE-LCHlch(45.81, 57.15, 140.84°)
OKLaboklab(51.82% -0.1197 0.0842)
OKLCHoklch(51.82% 0.146 144.9)
XYZxyz(8.3342, 15.1320, 4.7666)
Luminance0.1513 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7D2B #7D1F71
analogous
#427D1F #1F7D2B #1F7D5A
triadic
#1F7D2B #2B1F7D #7D2B1F
tetradic
#1F7D2B #1F427D #7D1F71 #7D5A1F
square
#1F7D2B #1F427D #7D1F71 #7D5A1F
split-complementary
#1F7D2B #5A1F7D #7D1F42
monochromatic
#071B09 #134C1A #1F7D2B #2BAE3C #45D157

Accessibility & contrast

On white

5.22
#1F7D2B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#1F7D2B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7D2B
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7D2B#FFFFFF#000000##FFFFFF
##1F7D2B1.005.224.035.22
#FFFFFF5.221.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7121
Deuteranopia (green-blind)
#746A32
Tritanopia (blue-blind)
#007A6C
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #1f7d2b;
/* rgb */ color: rgb(31, 125, 43);
/* oklch */ color: oklch(51.8% 0.146 144.9);
Tailwind
colors: {
  custom: {
    50: '#6aa468',
    500: '#1f7d2b',
    950: '#000000',
  },
}
SCSS
$custom: #1f7d2b;
$custom-light: #6aa468;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7d2b",
  "rgb": {
    "r": 31,
    "g": 125,
    "b": 43
  },
  "hsl": {
    "h": 127.66,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.51821,
    "c": 0.14634,
    "h": 144.9
  },
  "luminance": 0.15133
}

Semantic roles & 50–950 ramp

primary
#1F7D2B
secondary
#B048A3
accent
#44CFE3
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F06
muted
#7A7F7A

Preview Lab

Preview with #1F7D2B

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

Preview Lab → · Contrast checker → · Palette generator →

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