#1F7B19#1F7B19

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

Color values

HEX#1F7B19
RGBrgb(31, 123, 25)
HSLhsl(116, 66%, 29%)
HSVhsv(116, 80%, 48%)
CMYKcmyk(74.8%, 0%, 79.7%, 51.8%)
CIE-LABlab(44.98, -45.34, 42.71)
CIE-LCHlch(44.98, 62.29, 136.71°)
OKLaboklab(51.08% -0.1234 0.0958)
OKLCHoklch(51.08% 0.156 142.2)
XYZxyz(7.8230, 14.5265, 3.3111)
Luminance0.1453 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7B19 #75197B
analogous
#507B19 #1F7B19 #197B44
triadic
#1F7B19 #191F7B #7B191F
tetradic
#1F7B19 #19507B #75197B #7B4419
square
#1F7B19 #19507B #75197B #7B4419
split-complementary
#1F7B19 #44197B #7B1950
monochromatic
#061905 #12480F #1F7B19 #2CAE23 #42D738

Accessibility & contrast

On white

5.38
#1F7B19 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #1F7B19
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7B19#FFFFFF#000000##FFFFFF
##1F7B191.005.383.915.38
#FFFFFF5.381.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F02
Deuteranopia (green-blind)
#746824
Tritanopia (blue-blind)
#017769
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #1f7b19;
/* rgb */ color: rgb(31, 123, 25);
/* oklch */ color: oklch(51.1% 0.156 142.2);
Tailwind
colors: {
  custom: {
    50: '#6ba25e',
    500: '#1f7b19',
    950: '#000000',
  },
}
SCSS
$custom: #1f7b19;
$custom-light: #6ba25e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7b19",
  "rgb": {
    "r": 31,
    "g": 123,
    "b": 25
  },
  "hsl": {
    "h": 116.327,
    "s": 66.216,
    "l": 29.02
  },
  "oklch": {
    "l": 0.51082,
    "c": 0.1562,
    "h": 142.2
  },
  "luminance": 0.14527
}

Semantic roles & 50–950 ramp

primary
#1F7B19
secondary
#A940AF
accent
#3FE9DF
background
#F6FAF5
surface
#ECF4E9
border
#C7CEC5
text
#080F05
muted
#7A7F79

Preview Lab

Preview with #1F7B19

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

Preview Lab → · Contrast checker → · Palette generator →

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