#1F8A1C#1F8A1C

#1F8A1C is a mid, vivid green. Relative luminance 0.186; OKLCH L 55.4% C 0.172 H 142.5°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#1F8A1C
RGBrgb(31, 138, 28)
HSLhsl(118, 66%, 33%)
HSVhsv(118, 80%, 54%)
CMYKcmyk(77.5%, 0%, 79.7%, 45.9%)
CIE-LABlab(50.16, -50.21, 46.71)
CIE-LCHlch(50.16, 68.57, 137.07°)
OKLaboklab(55.39% -0.1364 0.1045)
OKLCHoklch(55.39% 0.172 142.5)
XYZxyz(9.8626, 18.5510, 4.1593)
Luminance0.1855 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8A1C #871C8A
analogous
#568A1C #1F8A1C #1C8A50
triadic
#1F8A1C #1C1F8A #8A1C1F
tetradic
#1F8A1C #1C568A #871C8A #8A501C
square
#1F8A1C #1C568A #871C8A #8A501C
split-complementary
#1F8A1C #501C8A #8A1C56
monochromatic
#082407 #145712 #1F8A1C #2ABD26 #4BDA47

Accessibility & contrast

On white

4.46
#1F8A1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#1F8A1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8A1C
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8A1C#FFFFFF#000000##000000
##1F8A1C1.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C00
Deuteranopia (green-blind)
#817429
Tritanopia (blue-blind)
#008675
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #1f8a1c;
/* rgb */ color: rgb(31, 138, 28);
/* oklch */ color: oklch(55.4% 0.172 142.5);
Tailwind
colors: {
  custom: {
    50: '#6ead61',
    500: '#1f8a1c',
    950: '#000000',
  },
}
SCSS
$custom: #1f8a1c;
$custom-light: #6ead61;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8a1c",
  "rgb": {
    "r": 31,
    "g": 138,
    "b": 28
  },
  "hsl": {
    "h": 118.364,
    "s": 66.265,
    "l": 32.549
  },
  "oklch": {
    "l": 0.5539,
    "c": 0.17186,
    "h": 142.5
  },
  "luminance": 0.18552
}

Semantic roles & 50–950 ramp

primary
#1F8A1C
secondary
#B846BB
accent
#3FE9E5
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081005
muted
#7B7F7A

Preview Lab

Preview with #1F8A1C

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

Preview Lab → · Contrast checker → · Palette generator →

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