#1F7518#1F7518

#1F7518 is a mid, vivid green. Relative luminance 0.131; OKLCH L 49.3% C 0.150 H 142.0°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#1F7518
RGBrgb(31, 117, 24)
HSLhsl(115, 66%, 28%)
HSVhsv(115, 79%, 46%)
CMYKcmyk(73.5%, 0%, 79.5%, 54.1%)
CIE-LABlab(42.88, -43.32, 41.02)
CIE-LCHlch(42.88, 59.65, 136.56°)
OKLaboklab(49.34% -0.118 0.0921)
OKLCHoklch(49.34% 0.15 142)
XYZxyz(7.0908, 13.0791, 3.0148)
Luminance0.1308 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7518 #6E1875
analogous
#4D7518 #1F7518 #187540
triadic
#1F7518 #181F75 #75181F
tetradic
#1F7518 #184D75 #6E1875 #754018
square
#1F7518 #184D75 #6E1875 #754018
split-complementary
#1F7518 #401875 #75184D
monochromatic
#071905 #12420E #1F7518 #2CA822 #3FD532

Accessibility & contrast

On white

5.81
#1F7518 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#1F7518 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7518
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7518#FFFFFF#000000##FFFFFF
##1F75181.005.813.625.81
#FFFFFF5.811.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786903
Deuteranopia (green-blind)
#6E6322
Tritanopia (blue-blind)
#067163
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #1f7518;
/* rgb */ color: rgb(31, 117, 24);
/* oklch */ color: oklch(49.3% 0.150 142.0);
Tailwind
colors: {
  custom: {
    50: '#699e5c',
    500: '#1f7518',
    950: '#000000',
  },
}
SCSS
$custom: #1f7518;
$custom-light: #699e5c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7518",
  "rgb": {
    "r": 31,
    "g": 117,
    "b": 24
  },
  "hsl": {
    "h": 115.484,
    "s": 65.957,
    "l": 27.647
  },
  "oklch": {
    "l": 0.49339,
    "c": 0.14965,
    "h": 142
  },
  "luminance": 0.1308
}

Semantic roles & 50–950 ramp

primary
#1F7518
secondary
#A23FAA
accent
#3FE9DC
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070E04
muted
#7A7E79

Preview Lab

Preview with #1F7518

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

Preview Lab → · Contrast checker → · Palette generator →

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