#1F8945#1F8945

#1F8945 is a mid, vivid green. Relative luminance 0.186; OKLCH L 55.6% C 0.139 H 150.4°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#1F8945
RGBrgb(31, 137, 69)
HSLhsl(142, 63%, 33%)
HSVhsv(142, 77%, 54%)
CMYKcmyk(77.4%, 0%, 49.6%, 46.3%)
CIE-LABlab(50.23, -44.92, 28.17)
CIE-LCHlch(50.23, 53.02, 147.91°)
OKLaboklab(55.58% -0.1207 0.0687)
OKLCHoklch(55.58% 0.139 150.4)
XYZxyz(10.5840, 18.6111, 8.6636)
Luminance0.1861 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8945 #891F63
analogous
#2E891F #1F8945 #1F897A
triadic
#1F8945 #451F89 #89451F
tetradic
#1F8945 #1F2E89 #891F63 #897A1F
square
#1F8945 #1F2E89 #891F63 #897A1F
split-complementary
#1F8945 #7A1F89 #891F2E
monochromatic
#082513 #14572C #1F8945 #2ABB5E #4CD67E

Accessibility & contrast

On white

4.45
#1F8945 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#1F8945 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8945
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8945#FFFFFF#000000##000000
##1F89451.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7D40
Deuteranopia (green-blind)
#7D744A
Tritanopia (blue-blind)
#008779
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #1f8945;
/* rgb */ color: rgb(31, 137, 69);
/* oklch */ color: oklch(55.6% 0.139 150.4);
Tailwind
colors: {
  custom: {
    50: '#6cac7a',
    500: '#1f8945',
    950: '#000000',
  },
}
SCSS
$custom: #1f8945;
$custom-light: #6cac7a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8945",
  "rgb": {
    "r": 31,
    "g": 137,
    "b": 69
  },
  "hsl": {
    "h": 141.509,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.55582,
    "c": 0.1389,
    "h": 150.4
  },
  "luminance": 0.18612
}

Semantic roles & 50–950 ramp

primary
#1F8945
secondary
#B94B92
accent
#42ABE6
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#081009
muted
#7B7F7B

Preview Lab

Preview with #1F8945

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

Preview Lab → · Contrast checker → · Palette generator →

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