#1F9728#1F9728

#1F9728 is a mid, vivid green. Relative luminance 0.226; OKLCH L 59.1% C 0.180 H 143.7°. Best body text is #000000 at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#1F9728
RGBrgb(31, 151, 40)
HSLhsl(125, 66%, 36%)
HSVhsv(125, 79%, 59%)
CMYKcmyk(79.5%, 0%, 73.5%, 40.8%)
CIE-LABlab(54.63, -53.52, 46.83)
CIE-LCHlch(54.63, 71.12, 138.82°)
OKLaboklab(59.14% -0.1449 0.1064)
OKLCHoklch(59.14% 0.18 143.7)
XYZxyz(12.0139, 22.5763, 5.7316)
Luminance0.2258 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F9728 #971F8E
analogous
#52971F #1F9728 #1F9764
triadic
#1F9728 #281F97 #97281F
tetradic
#1F9728 #1F5297 #971F8E #97641F
square
#1F9728 #1F5297 #971F8E #97641F
split-complementary
#1F9728 #641F97 #971F52
monochromatic
#0A310D #15641B #1F9728 #29CA35 #54DC5F

Accessibility & contrast

On white

3.81
#1F9728 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.52
#1F9728 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F9728
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F9728#FFFFFF#000000##000000
##1F97281.003.815.525.52
#FFFFFF3.811.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8815
Deuteranopia (green-blind)
#8D7F33
Tritanopia (blue-blind)
#009381
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #1f9728;
/* rgb */ color: rgb(31, 151, 40);
/* oklch */ color: oklch(59.1% 0.180 143.7);
Tailwind
colors: {
  custom: {
    50: '#71b769',
    500: '#1f9728',
    950: '#000000',
  },
}
SCSS
$custom: #1f9728;
$custom-light: #71b769;
$custom-dark: #000000;
JSON
{
  "hex": "#1f9728",
  "rgb": {
    "r": 31,
    "g": 151,
    "b": 40
  },
  "hsl": {
    "h": 124.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.59135,
    "c": 0.17976,
    "h": 143.7
  },
  "luminance": 0.22578
}

Semantic roles & 50–950 ramp

primary
#1F9728
secondary
#BF52B7
accent
#3FDCE9
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#091107
muted
#7B807A

Preview Lab

Preview with #1F9728

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

Preview Lab → · Contrast checker → · Palette generator →

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