#1F8728#1F8728

#1F8728 is a mid, vivid green. Relative luminance 0.178; OKLCH L 54.6% C 0.161 H 144.0°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#1F8728
RGBrgb(31, 135, 40)
HSLhsl(125, 63%, 33%)
HSVhsv(125, 77%, 53%)
CMYKcmyk(77%, 0%, 70.4%, 47.1%)
CIE-LABlab(49.22, -48.17, 41.16)
CIE-LCHlch(49.22, 63.35, 139.49°)
OKLaboklab(54.64% -0.1303 0.0946)
OKLCHoklch(54.64% 0.161 144)
XYZxyz(9.6114, 17.7713, 4.9307)
Luminance0.1777 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8728 #871F7E
analogous
#4A871F #1F8728 #1F875C
triadic
#1F8728 #281F87 #87281F
tetradic
#1F8728 #1F4A87 #871F7E #875C1F
square
#1F8728 #1F4A87 #871F7E #875C1F
split-complementary
#1F8728 #5C1F87 #871F4A
monochromatic
#08230B #145519 #1F8728 #2AB937 #4BD657

Accessibility & contrast

On white

4.61
#1F8728 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#1F8728 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #1F8728
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8728#FFFFFF#000000##FFFFFF
##1F87281.004.614.554.61
#FFFFFF4.611.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A1A
Deuteranopia (green-blind)
#7E7231
Tritanopia (blue-blind)
#008374
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #1f8728;
/* rgb */ color: rgb(31, 135, 40);
/* oklch */ color: oklch(54.6% 0.161 144.0);
Tailwind
colors: {
  custom: {
    50: '#6dab67',
    500: '#1f8728',
    950: '#000000',
  },
}
SCSS
$custom: #1f8728;
$custom-light: #6dab67;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8728",
  "rgb": {
    "r": 31,
    "g": 135,
    "b": 40
  },
  "hsl": {
    "h": 125.192,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.54636,
    "c": 0.161,
    "h": 144
  },
  "luminance": 0.17772
}

Semantic roles & 50–950 ramp

primary
#1F8728
secondary
#B84AAF
accent
#42D8E6
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #1F8728

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

Preview Lab → · Contrast checker → · Palette generator →

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