#1F882A#1F882A

#1F882A is a mid, vivid green. Relative luminance 0.181; OKLCH L 54.9% C 0.161 H 144.3°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#1F882A
RGBrgb(31, 136, 42)
HSLhsl(126, 63%, 33%)
HSVhsv(126, 77%, 53%)
CMYKcmyk(77.2%, 0%, 69.1%, 46.7%)
CIE-LABlab(49.58, -48.30, 40.68)
CIE-LCHlch(49.58, 63.15, 139.90°)
OKLaboklab(54.94% -0.1306 0.0938)
OKLCHoklch(54.94% 0.161 144.3)
XYZxyz(9.7865, 18.0657, 5.1613)
Luminance0.1807 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F882A #881F7D
analogous
#48881F #1F882A #1F885F
triadic
#1F882A #2A1F88 #882A1F
tetradic
#1F882A #1F4888 #881F7D #885F1F
square
#1F882A #1F4888 #881F7D #885F1F
split-complementary
#1F882A #5F1F88 #881F48
monochromatic
#08240B #14561B #1F882A #2ABA39 #4BD65A

Accessibility & contrast

On white

4.55
#1F882A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#1F882A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F882A
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F882A#FFFFFF#000000##000000
##1F882A1.004.554.614.61
#FFFFFF4.551.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B1D
Deuteranopia (green-blind)
#7F7333
Tritanopia (blue-blind)
#008475
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #1f882a;
/* rgb */ color: rgb(31, 136, 42);
/* oklch */ color: oklch(54.9% 0.161 144.3);
Tailwind
colors: {
  custom: {
    50: '#6dac68',
    500: '#1f882a',
    950: '#000000',
  },
}
SCSS
$custom: #1f882a;
$custom-light: #6dac68;
$custom-dark: #000000;
JSON
{
  "hex": "#1f882a",
  "rgb": {
    "r": 31,
    "g": 136,
    "b": 42
  },
  "hsl": {
    "h": 126.286,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.54939,
    "c": 0.16077,
    "h": 144.3
  },
  "luminance": 0.18067
}

Semantic roles & 50–950 ramp

primary
#1F882A
secondary
#B94AAD
accent
#42D5E6
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #1F882A

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

Preview Lab → · Contrast checker → · Palette generator →

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