#1F9738#1F9738

#1F9738 is a mid, vivid green. Relative luminance 0.227; OKLCH L 59.3% C 0.168 H 146.0°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#1F9738
RGBrgb(31, 151, 56)
HSLhsl(133, 66%, 36%)
HSVhsv(133, 79%, 59%)
CMYKcmyk(79.5%, 0%, 62.9%, 40.8%)
CIE-LABlab(54.77, -51.84, 40.13)
CIE-LCHlch(54.77, 65.56, 142.25°)
OKLaboklab(59.29% -0.1396 0.0941)
OKLCHoklch(59.29% 0.168 146)
XYZxyz(12.3446, 22.7086, 7.4732)
Luminance0.2271 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F9738 #971F7E
analogous
#42971F #1F9738 #1F9774
triadic
#1F9738 #381F97 #97381F
tetradic
#1F9738 #1F4297 #971F7E #97741F
square
#1F9738 #1F4297 #971F7E #97741F
split-complementary
#1F9738 #741F97 #971F42
monochromatic
#0A3112 #156425 #1F9738 #29CA4B #54DC71

Accessibility & contrast

On white

3.79
#1F9738 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#1F9738 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F9738
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F9738#FFFFFF#000000##000000
##1F97381.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#99892D
Deuteranopia (green-blind)
#8C7F40
Tritanopia (blue-blind)
#009383
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #1f9738;
/* rgb */ color: rgb(31, 151, 56);
/* oklch */ color: oklch(59.3% 0.168 146.0);
Tailwind
colors: {
  custom: {
    50: '#70b772',
    500: '#1f9738',
    950: '#000000',
  },
}
SCSS
$custom: #1f9738;
$custom-light: #70b772;
$custom-dark: #000000;
JSON
{
  "hex": "#1f9738",
  "rgb": {
    "r": 31,
    "g": 151,
    "b": 56
  },
  "hsl": {
    "h": 132.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.59294,
    "c": 0.16837,
    "h": 146
  },
  "luminance": 0.2271
}

Semantic roles & 50–950 ramp

primary
#1F9738
secondary
#BF52A9
accent
#3FC5E9
background
#F7FBF7
surface
#EDF6ED
border
#C8D0C8
text
#091108
muted
#7B807B

Preview Lab

Preview with #1F9738

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

Preview Lab → · Contrast checker → · Palette generator →

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