#1F8722#1F8722

#1F8722 is a mid, vivid green. Relative luminance 0.177; OKLCH L 54.6% C 0.165 H 143.2°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#1F8722
RGBrgb(31, 135, 34)
HSLhsl(122, 63%, 33%)
HSVhsv(122, 77%, 53%)
CMYKcmyk(77%, 0%, 74.8%, 47.1%)
CIE-LABlab(49.17, -48.73, 43.55)
CIE-LCHlch(49.17, 65.36, 138.21°)
OKLaboklab(54.58% -0.1321 0.0988)
OKLCHoklch(54.58% 0.165 143.2)
XYZxyz(9.5172, 17.7336, 4.4344)
Luminance0.1774 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8722 #871F84
analogous
#50871F #1F8722 #1F8756
triadic
#1F8722 #221F87 #87221F
tetradic
#1F8722 #1F5087 #871F84 #87561F
square
#1F8722 #1F5087 #871F84 #87561F
split-complementary
#1F8722 #561F87 #871F50
monochromatic
#082309 #145515 #1F8722 #2AB92F #4BD64F

Accessibility & contrast

On white

4.62
#1F8722 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #1F8722
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8722#FFFFFF#000000##FFFFFF
##1F87221.004.624.554.62
#FFFFFF4.621.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A10
Deuteranopia (green-blind)
#7E722D
Tritanopia (blue-blind)
#008373
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #1f8722;
/* rgb */ color: rgb(31, 135, 34);
/* oklch */ color: oklch(54.6% 0.165 143.2);
Tailwind
colors: {
  custom: {
    50: '#6dab64',
    500: '#1f8722',
    950: '#000000',
  },
}
SCSS
$custom: #1f8722;
$custom-light: #6dab64;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8722",
  "rgb": {
    "r": 31,
    "g": 135,
    "b": 34
  },
  "hsl": {
    "h": 121.731,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.54583,
    "c": 0.16498,
    "h": 143.2
  },
  "luminance": 0.17735
}

Semantic roles & 50–950 ramp

primary
#1F8722
secondary
#B84AB5
accent
#42E1E6
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #1F8722

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

Preview Lab → · Contrast checker → · Palette generator →

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