#1F8E1C#1F8E1C

#1F8E1C is a mid, vivid green. Relative luminance 0.197; OKLCH L 56.5% C 0.176 H 142.5°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#1F8E1C
RGBrgb(31, 142, 28)
HSLhsl(118, 67%, 33%)
HSVhsv(118, 80%, 56%)
CMYKcmyk(78.2%, 0%, 80.3%, 44.3%)
CIE-LABlab(51.52, -51.52, 48.02)
CIE-LCHlch(51.52, 70.43, 137.01°)
OKLaboklab(56.52% -0.14 0.1073)
OKLCHoklch(56.52% 0.176 142.5)
XYZxyz(10.4470, 19.7199, 4.3541)
Luminance0.1972 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8E1C #8B1C8E
analogous
#588E1C #1F8E1C #1C8E52
triadic
#1F8E1C #1C1F8E #8E1C1F
tetradic
#1F8E1C #1C588E #8B1C8E #8E521C
square
#1F8E1C #1C588E #8B1C8E #8E521C
split-complementary
#1F8E1C #521C8E #8E1C58
monochromatic
#092808 #145B12 #1F8E1C #2AC126 #4DDB49

Accessibility & contrast

On white

4.25
#1F8E1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#1F8E1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8E1C
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8E1C#FFFFFF#000000##000000
##1F8E1C1.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#918000
Deuteranopia (green-blind)
#85782A
Tritanopia (blue-blind)
#008A79
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #1f8e1c;
/* rgb */ color: rgb(31, 142, 28);
/* oklch */ color: oklch(56.5% 0.176 142.5);
Tailwind
colors: {
  custom: {
    50: '#6fb062',
    500: '#1f8e1c',
    950: '#000000',
  },
}
SCSS
$custom: #1f8e1c;
$custom-light: #6fb062;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8e1c",
  "rgb": {
    "r": 31,
    "g": 142,
    "b": 28
  },
  "hsl": {
    "h": 118.421,
    "s": 67.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.56522,
    "c": 0.17636,
    "h": 142.5
  },
  "luminance": 0.19721
}

Semantic roles & 50–950 ramp

primary
#1F8E1C
secondary
#BA49BD
accent
#3EEAE5
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#091105
muted
#7B807A

Preview Lab

Preview with #1F8E1C

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

Preview Lab → · Contrast checker → · Palette generator →

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