#1F8545#1F8545

#1F8545 is a mid, vivid green. Relative luminance 0.175; OKLCH L 54.5% C 0.133 H 151.0°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#1F8545
RGBrgb(31, 133, 69)
HSLhsl(142, 62%, 32%)
HSVhsv(142, 77%, 52%)
CMYKcmyk(76.7%, 0%, 48.1%, 47.8%)
CIE-LABlab(48.88, -43.40, 26.46)
CIE-LCHlch(48.88, 50.83, 148.63°)
OKLaboklab(54.46% -0.1167 0.0648)
OKLCHoklch(54.46% 0.133 151)
XYZxyz(10.0259, 17.4949, 8.4775)
Luminance0.1750 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8545 #851F5F
analogous
#2C851F #1F8545 #1F8578
triadic
#1F8545 #451F85 #85451F
tetradic
#1F8545 #1F2C85 #851F5F #85781F
square
#1F8545 #1F2C85 #851F5F #85781F
split-complementary
#1F8545 #781F85 #851F2C
monochromatic
#082212 #13532B #1F8545 #2BB75F #4AD57D

Accessibility & contrast

On white

4.67
#1F8545 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#1F8545 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #1F8545
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8545#FFFFFF#000000##FFFFFF
##1F85451.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867940
Deuteranopia (green-blind)
#7A714A
Tritanopia (blue-blind)
#008376
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #1f8545;
/* rgb */ color: rgb(31, 133, 69);
/* oklch */ color: oklch(54.5% 0.133 151.0);
Tailwind
colors: {
  custom: {
    50: '#6ba97a',
    500: '#1f8545',
    950: '#000000',
  },
}
SCSS
$custom: #1f8545;
$custom-light: #6ba97a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8545",
  "rgb": {
    "r": 31,
    "g": 133,
    "b": 69
  },
  "hsl": {
    "h": 142.353,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.54464,
    "c": 0.13347,
    "h": 151
  },
  "luminance": 0.17496
}

Semantic roles & 50–950 ramp

primary
#1F8545
secondary
#B7498E
accent
#43A9E5
background
#F6FAF7
surface
#ECF4ED
border
#C7CEC8
text
#081009
muted
#7A7F7B

Preview Lab

Preview with #1F8545

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

Preview Lab → · Contrast checker → · Palette generator →

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