#1F8518#1F8518

#1F8518 is a mid, vivid green. Relative luminance 0.171; OKLCH L 53.9% C 0.168 H 142.2°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#1F8518
RGBrgb(31, 133, 24)
HSLhsl(116, 69%, 31%)
HSVhsv(116, 82%, 52%)
CMYKcmyk(76.7%, 0%, 82%, 47.8%)
CIE-LABlab(48.42, -48.81, 46.35)
CIE-LCHlch(48.42, 67.32, 136.48°)
OKLaboklab(53.94% -0.1328 0.1032)
OKLCHoklch(53.94% 0.168 142.2)
XYZxyz(9.1169, 17.1313, 3.6902)
Luminance0.1713 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8518 #7E1885
analogous
#558518 #1F8518 #188547
triadic
#1F8518 #181F85 #85181F
tetradic
#1F8518 #185585 #7E1885 #854718
square
#1F8518 #185585 #7E1885 #854718
split-complementary
#1F8518 #471885 #851855
monochromatic
#071D05 #13510F #1F8518 #2BB921 #46DC3C

Accessibility & contrast

On white

4.74
#1F8518 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#1F8518 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F8518
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8518#FFFFFF#000000##FFFFFF
##1F85181.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#887800
Deuteranopia (green-blind)
#7D7025
Tritanopia (blue-blind)
#008171
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #1f8518;
/* rgb */ color: rgb(31, 133, 24);
/* oklch */ color: oklch(53.9% 0.168 142.2);
Tailwind
colors: {
  custom: {
    50: '#6daa5f',
    500: '#1f8518',
    950: '#000000',
  },
}
SCSS
$custom: #1f8518;
$custom-light: #6daa5f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8518",
  "rgb": {
    "r": 31,
    "g": 133,
    "b": 24
  },
  "hsl": {
    "h": 116.147,
    "s": 69.427,
    "l": 30.784
  },
  "oklch": {
    "l": 0.53943,
    "c": 0.16823,
    "h": 142.2
  },
  "luminance": 0.17132
}

Semantic roles & 50–950 ramp

primary
#1F8518
secondary
#B140B9
accent
#3CECE1
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#081005
muted
#7B7F79

Preview Lab

Preview with #1F8518

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

Preview Lab → · Contrast checker → · Palette generator →

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