#1F7B18#1F7B18

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

Color values

HEX#1F7B18
RGBrgb(31, 123, 24)
HSLhsl(116, 67%, 29%)
HSVhsv(116, 80%, 48%)
CMYKcmyk(74.8%, 0%, 80.5%, 51.8%)
CIE-LABlab(44.97, -45.42, 43.05)
CIE-LCHlch(44.97, 62.58, 136.53°)
OKLaboklab(51.08% -0.1236 0.0963)
OKLCHoklch(51.08% 0.157 142.1)
XYZxyz(7.8124, 14.5223, 3.2553)
Luminance0.1452 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7B18 #74187B
analogous
#517B18 #1F7B18 #187B43
triadic
#1F7B18 #181F7B #7B181F
tetradic
#1F7B18 #18517B #74187B #7B4318
square
#1F7B18 #18517B #74187B #7B4318
split-complementary
#1F7B18 #43187B #7B1851
monochromatic
#061A05 #12480E #1F7B18 #2CAE22 #41D836

Accessibility & contrast

On white

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

On black

3.90
#1F7B18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##1F7B18#FFFFFF#000000##FFFFFF
##1F7B181.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F00
Deuteranopia (green-blind)
#746823
Tritanopia (blue-blind)
#017768
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #1f7b18;
/* rgb */ color: rgb(31, 123, 24);
/* oklch */ color: oklch(51.1% 0.157 142.1);
Tailwind
colors: {
  custom: {
    50: '#6ba25d',
    500: '#1f7b18',
    950: '#000000',
  },
}
SCSS
$custom: #1f7b18;
$custom-light: #6ba25d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7b18",
  "rgb": {
    "r": 31,
    "g": 123,
    "b": 24
  },
  "hsl": {
    "h": 115.758,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.51075,
    "c": 0.15674,
    "h": 142.1
  },
  "luminance": 0.14523
}

Semantic roles & 50–950 ramp

primary
#1F7B18
secondary
#A83FB0
accent
#3EEADE
background
#F6FAF5
surface
#ECF4E9
border
#C7CEC5
text
#080F05
muted
#7A7F79

Preview Lab

Preview with #1F7B18

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

Preview Lab → · Contrast checker → · Palette generator →

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