#1F8729#1F8729

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

Color values

HEX#1F8729
RGBrgb(31, 135, 41)
HSLhsl(126, 63%, 33%)
HSVhsv(126, 77%, 53%)
CMYKcmyk(77%, 0%, 69.6%, 47.1%)
CIE-LABlab(49.23, -48.06, 40.74)
CIE-LCHlch(49.23, 63.00, 139.72°)
OKLaboklab(54.65% -0.13 0.0938)
OKLCHoklch(54.65% 0.16 144.2)
XYZxyz(9.6286, 17.7782, 5.0215)
Luminance0.1778 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8729 #871F7D
analogous
#49871F #1F8729 #1F875D
triadic
#1F8729 #291F87 #87291F
tetradic
#1F8729 #1F4987 #871F7D #875D1F
square
#1F8729 #1F4987 #871F7D #875D1F
split-complementary
#1F8729 #5D1F87 #871F49
monochromatic
#08230B #14551A #1F8729 #2AB938 #4BD658

Accessibility & contrast

On white

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

On black

4.56
#1F8729 on #000000
AA ✓AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##1F8729#FFFFFF#000000##FFFFFF
##1F87291.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f8729;
/* rgb */ color: rgb(31, 135, 41);
/* oklch */ color: oklch(54.6% 0.160 144.2);
Tailwind
colors: {
  custom: {
    50: '#6dab68',
    500: '#1f8729',
    950: '#000000',
  },
}
SCSS
$custom: #1f8729;
$custom-light: #6dab68;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8729",
  "rgb": {
    "r": 31,
    "g": 135,
    "b": 41
  },
  "hsl": {
    "h": 125.769,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.54646,
    "c": 0.16028,
    "h": 144.2
  },
  "luminance": 0.17779
}

Semantic roles & 50–950 ramp

primary
#1F8729
secondary
#B84AAE
accent
#42D6E6
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #1F8729

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

Preview Lab → · Contrast checker → · Palette generator →

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