#1F7D24#1F7D24

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

Color values

HEX#1F7D24
RGBrgb(31, 125, 36)
HSLhsl(123, 60%, 31%)
HSVhsv(123, 75%, 49%)
CMYKcmyk(75.2%, 0%, 71.2%, 51%)
CIE-LABlab(45.75, -45.08, 39.17)
CIE-LCHlch(45.75, 59.72, 139.01°)
OKLaboklab(51.75% -0.1221 0.0899)
OKLCHoklch(51.75% 0.152 143.6)
XYZxyz(8.2166, 15.0850, 4.1474)
Luminance0.1509 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7D24 #7D1F78
analogous
#497D1F #1F7D24 #1F7D53
triadic
#1F7D24 #241F7D #7D241F
tetradic
#1F7D24 #1F497D #7D1F78 #7D531F
square
#1F7D24 #1F497D #7D1F78 #7D531F
split-complementary
#1F7D24 #531F7D #7D1F49
monochromatic
#071B08 #134C16 #1F7D24 #2BAE32 #45D14D

Accessibility & contrast

On white

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

On black

4.02
#1F7D24 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##1F7D24#FFFFFF#000000##FFFFFF
##1F7D241.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807117
Deuteranopia (green-blind)
#75692D
Tritanopia (blue-blind)
#00796B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #1f7d24;
/* rgb */ color: rgb(31, 125, 36);
/* oklch */ color: oklch(51.7% 0.152 143.6);
Tailwind
colors: {
  custom: {
    50: '#6ba464',
    500: '#1f7d24',
    950: '#000000',
  },
}
SCSS
$custom: #1f7d24;
$custom-light: #6ba464;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7d24",
  "rgb": {
    "r": 31,
    "g": 125,
    "b": 36
  },
  "hsl": {
    "h": 123.191,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.51747,
    "c": 0.15164,
    "h": 143.6
  },
  "luminance": 0.15086
}

Semantic roles & 50–950 ramp

primary
#1F7D24
secondary
#B048AB
accent
#44DBE3
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F06
muted
#7A7F7A

Preview Lab

Preview with #1F7D24

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

Preview Lab → · Contrast checker → · Palette generator →

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