#1F842E#1F842E

#1F842E is a mid, vivid green. Relative luminance 0.170; OKLCH L 53.8% C 0.153 H 145.2°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#1F842E
RGBrgb(31, 132, 46)
HSLhsl(129, 62%, 32%)
HSVhsv(129, 77%, 52%)
CMYKcmyk(76.5%, 0%, 65.2%, 48.2%)
CIE-LABlab(48.25, -46.45, 37.41)
CIE-LCHlch(48.25, 59.65, 141.15°)
OKLaboklab(53.85% -0.1254 0.0873)
OKLCHoklch(53.85% 0.153 145.2)
XYZxyz(9.3088, 16.9900, 5.3730)
Luminance0.1699 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F842E #841F75
analogous
#43841F #1F842E #1F8461
triadic
#1F842E #2E1F84 #842E1F
tetradic
#1F842E #1F4384 #841F75 #84611F
square
#1F842E #1F4384 #841F75 #84611F
split-complementary
#1F842E #611F84 #841F43
monochromatic
#08210B #13521D #1F842E #2BB63F #49D45E

Accessibility & contrast

On white

4.77
#1F842E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#1F842E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F842E
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F842E#FFFFFF#000000##FFFFFF
##1F842E1.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867724
Deuteranopia (green-blind)
#7B6F35
Tritanopia (blue-blind)
#008172
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #1f842e;
/* rgb */ color: rgb(31, 132, 46);
/* oklch */ color: oklch(53.8% 0.153 145.2);
Tailwind
colors: {
  custom: {
    50: '#6ca96a',
    500: '#1f842e',
    950: '#000000',
  },
}
SCSS
$custom: #1f842e;
$custom-light: #6ca96a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f842e",
  "rgb": {
    "r": 31,
    "g": 132,
    "b": 46
  },
  "hsl": {
    "h": 128.911,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.53848,
    "c": 0.1528,
    "h": 145.2
  },
  "luminance": 0.16991
}

Semantic roles & 50–950 ramp

primary
#1F842E
secondary
#B748A6
accent
#43CDE5
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081007
muted
#7B7F7A

Preview Lab

Preview with #1F842E

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

Preview Lab → · Contrast checker → · Palette generator →

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