#1F8731#1F8731

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

Color values

HEX#1F8731
RGBrgb(31, 135, 49)
HSLhsl(130, 63%, 33%)
HSVhsv(130, 77%, 53%)
CMYKcmyk(77%, 0%, 63.7%, 47.1%)
CIE-LABlab(49.30, -47.15, 37.19)
CIE-LCHlch(49.30, 60.05, 141.73°)
OKLaboklab(54.73% -0.1272 0.0871)
OKLCHoklch(54.73% 0.154 145.6)
XYZxyz(9.7827, 17.8399, 5.8330)
Luminance0.1784 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8731 #871F75
analogous
#41871F #1F8731 #1F8765
triadic
#1F8731 #311F87 #87311F
tetradic
#1F8731 #1F4187 #871F75 #87651F
square
#1F8731 #1F4187 #871F75 #87651F
split-complementary
#1F8731 #651F87 #871F41
monochromatic
#08230D #14551F #1F8731 #2AB943 #4BD663

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F8731#FFFFFF#000000##FFFFFF
##1F87311.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)
#897A27
Deuteranopia (green-blind)
#7D7238
Tritanopia (blue-blind)
#008475
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #1f8731;
/* rgb */ color: rgb(31, 135, 49);
/* oklch */ color: oklch(54.7% 0.154 145.6);
Tailwind
colors: {
  custom: {
    50: '#6dab6c',
    500: '#1f8731',
    950: '#000000',
  },
}
SCSS
$custom: #1f8731;
$custom-light: #6dab6c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8731",
  "rgb": {
    "r": 31,
    "g": 135,
    "b": 49
  },
  "hsl": {
    "h": 130.385,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.54732,
    "c": 0.15415,
    "h": 145.6
  },
  "luminance": 0.17841
}

Semantic roles & 50–950 ramp

primary
#1F8731
secondary
#B84AA5
accent
#42C9E6
background
#F7FAF6
surface
#EDF4EC
border
#C8CEC7
text
#081007
muted
#7B7F7A

Preview Lab

Preview with #1F8731

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

Preview Lab → · Contrast checker → · Palette generator →

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