#1F8A51#1F8A51

#1F8A51 is a mid, vivid green. Relative luminance 0.191; OKLCH L 56.1% C 0.129 H 154.4°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#1F8A51
RGBrgb(31, 138, 81)
HSLhsl(148, 63%, 33%)
HSVhsv(148, 78%, 54%)
CMYKcmyk(77.5%, 0%, 41.3%, 45.9%)
CIE-LABlab(50.76, -43.08, 22.31)
CIE-LCHlch(50.76, 48.51, 152.62°)
OKLaboklab(56.08% -0.1161 0.0555)
OKLCHoklch(56.08% 0.129 154.4)
XYZxyz(11.1377, 19.0610, 10.8751)
Luminance0.1906 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8A51 #8A1F58
analogous
#238A1F #1F8A51 #1F8A86
triadic
#1F8A51 #511F8A #8A511F
tetradic
#1F8A51 #1F238A #8A1F58 #8A861F
square
#1F8A51 #1F238A #8A1F58 #8A861F
split-complementary
#1F8A51 #861F8A #8A1F23
monochromatic
#092616 #145834 #1F8A51 #2ABC6E #4CD78D

Accessibility & contrast

On white

4.36
#1F8A51 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#1F8A51 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8A51
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8A51#FFFFFF#000000##000000
##1F8A511.004.364.814.81
#FFFFFF4.361.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7E4D
Deuteranopia (green-blind)
#7D7555
Tritanopia (blue-blind)
#00887C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #1f8a51;
/* rgb */ color: rgb(31, 138, 81);
/* oklch */ color: oklch(56.1% 0.129 154.4);
Tailwind
colors: {
  custom: {
    50: '#6cad82',
    500: '#1f8a51',
    950: '#000000',
  },
}
SCSS
$custom: #1f8a51;
$custom-light: #6cad82;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8a51",
  "rgb": {
    "r": 31,
    "g": 138,
    "b": 81
  },
  "hsl": {
    "h": 148.037,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.56083,
    "c": 0.12868,
    "h": 154.4
  },
  "luminance": 0.19062
}

Semantic roles & 50–950 ramp

primary
#1F8A51
secondary
#BA4B86
accent
#4199E6
background
#F7FAF8
surface
#EDF4EF
border
#C8CECA
text
#08100A
muted
#7B7F7C

Preview Lab

Preview with #1F8A51

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

Preview Lab → · Contrast checker → · Palette generator →

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