#1F8732#1F8732

#1F8732 is a mid, vivid green. Relative luminance 0.178; OKLCH L 54.7% C 0.153 H 145.8°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#1F8732
RGBrgb(31, 135, 50)
HSLhsl(131, 63%, 33%)
HSVhsv(131, 77%, 53%)
CMYKcmyk(77%, 0%, 63%, 47.1%)
CIE-LABlab(49.31, -47.02, 36.73)
CIE-LCHlch(49.31, 59.67, 142.01°)
OKLaboklab(54.74% -0.1268 0.0862)
OKLCHoklch(54.74% 0.153 145.8)
XYZxyz(9.8041, 17.8484, 5.9454)
Luminance0.1785 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8732 #871F74
analogous
#40871F #1F8732 #1F8766
triadic
#1F8732 #321F87 #87321F
tetradic
#1F8732 #1F4087 #871F74 #87661F
square
#1F8732 #1F4087 #871F74 #87661F
split-complementary
#1F8732 #661F87 #871F40
monochromatic
#08230D #145520 #1F8732 #2AB944 #4BD664

Accessibility & contrast

On white

4.60
#1F8732 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#1F8732 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #1F8732
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8732#FFFFFF#000000##FFFFFF
##1F87321.004.604.574.60
#FFFFFF4.601.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#897A29
Deuteranopia (green-blind)
#7D7239
Tritanopia (blue-blind)
#008475
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #1f8732;
/* rgb */ color: rgb(31, 135, 50);
/* oklch */ color: oklch(54.7% 0.153 145.8);
Tailwind
colors: {
  custom: {
    50: '#6dab6d',
    500: '#1f8732',
    950: '#000000',
  },
}
SCSS
$custom: #1f8732;
$custom-light: #6dab6d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8732",
  "rgb": {
    "r": 31,
    "g": 135,
    "b": 50
  },
  "hsl": {
    "h": 130.962,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.54744,
    "c": 0.15334,
    "h": 145.8
  },
  "luminance": 0.1785
}

Semantic roles & 50–950 ramp

primary
#1F8732
secondary
#B84AA4
accent
#42C8E6
background
#F7FAF6
surface
#EDF4EC
border
#C8CEC7
text
#081007
muted
#7B7F7A

Preview Lab

Preview with #1F8732

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

Preview Lab → · Contrast checker → · Palette generator →

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