#1F7D20#1F7D20

#1F7D20 is a mid, vivid green. Relative luminance 0.151; OKLCH L 51.7% C 0.154 H 143.1°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#1F7D20
RGBrgb(31, 125, 32)
HSLhsl(121, 60%, 31%)
HSVhsv(121, 75%, 49%)
CMYKcmyk(75.2%, 0%, 74.4%, 51%)
CIE-LABlab(45.72, -45.47, 40.80)
CIE-LCHlch(45.72, 61.09, 138.09°)
OKLaboklab(51.71% -0.1234 0.0928)
OKLCHoklch(51.71% 0.154 143.1)
XYZxyz(8.1589, 15.0619, 3.8435)
Luminance0.1506 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7D20 #7D1F7C
analogous
#4D7D1F #1F7D20 #1F7D4F
triadic
#1F7D20 #201F7D #7D201F
tetradic
#1F7D20 #1F4D7D #7D1F7C #7D4F1F
square
#1F7D20 #1F4D7D #7D1F7C #7D4F1F
split-complementary
#1F7D20 #4F1F7D #7D1F4D
monochromatic
#071B07 #134C13 #1F7D20 #2BAE2D #45D147

Accessibility & contrast

On white

5.23
#1F7D20 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #1F7D20
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7D20#FFFFFF#000000##FFFFFF
##1F7D201.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807110
Deuteranopia (green-blind)
#756929
Tritanopia (blue-blind)
#00796B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #1f7d20;
/* rgb */ color: rgb(31, 125, 32);
/* oklch */ color: oklch(51.7% 0.154 143.1);
Tailwind
colors: {
  custom: {
    50: '#6ba462',
    500: '#1f7d20',
    950: '#000000',
  },
}
SCSS
$custom: #1f7d20;
$custom-light: #6ba462;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7d20",
  "rgb": {
    "r": 31,
    "g": 125,
    "b": 32
  },
  "hsl": {
    "h": 120.638,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.51711,
    "c": 0.15437,
    "h": 143.1
  },
  "luminance": 0.15063
}

Semantic roles & 50–950 ramp

primary
#1F7D20
secondary
#B048AF
accent
#44E2E3
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F05
muted
#7A7F7A

Preview Lab

Preview with #1F7D20

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

Preview Lab → · Contrast checker → · Palette generator →

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