#1F8918#1F8918

#1F8918 is a mid, vivid green. Relative luminance 0.182; OKLCH L 55.1% C 0.173 H 142.2°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#1F8918
RGBrgb(31, 137, 24)
HSLhsl(116, 70%, 32%)
HSVhsv(116, 82%, 54%)
CMYKcmyk(77.4%, 0%, 82.5%, 46.3%)
CIE-LABlab(49.79, -50.14, 47.65)
CIE-LCHlch(49.79, 69.17, 136.46°)
OKLaboklab(55.08% -0.1364 0.1059)
OKLCHoklch(55.08% 0.173 142.2)
XYZxyz(9.6750, 18.2475, 3.8762)
Luminance0.1825 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8918 #821889
analogous
#588918 #1F8918 #18894A
triadic
#1F8918 #181F89 #89181F
tetradic
#1F8918 #185889 #821889 #894A18
square
#1F8918 #185889 #821889 #894A18
split-complementary
#1F8918 #4A1889 #891858
monochromatic
#072106 #13550F #1F8918 #2BBD21 #48DD3E

Accessibility & contrast

On white

4.52
#1F8918 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#1F8918 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8918
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8918#FFFFFF#000000##000000
##1F89181.004.524.654.65
#FFFFFF4.521.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B00
Deuteranopia (green-blind)
#817326
Tritanopia (blue-blind)
#008574
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #1f8918;
/* rgb */ color: rgb(31, 137, 24);
/* oklch */ color: oklch(55.1% 0.173 142.2);
Tailwind
colors: {
  custom: {
    50: '#6eac5f',
    500: '#1f8918',
    950: '#000000',
  },
}
SCSS
$custom: #1f8918;
$custom-light: #6eac5f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8918",
  "rgb": {
    "r": 31,
    "g": 137,
    "b": 24
  },
  "hsl": {
    "h": 116.283,
    "s": 70.186,
    "l": 31.569
  },
  "oklch": {
    "l": 0.55082,
    "c": 0.17271,
    "h": 142.2
  },
  "luminance": 0.18249
}

Semantic roles & 50–950 ramp

primary
#1F8918
secondary
#B540BD
accent
#3BEDE2
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#081005
muted
#7B7F79

Preview Lab

Preview with #1F8918

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

Preview Lab → · Contrast checker → · Palette generator →

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