#1F8542#1F8542

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

Color values

HEX#1F8542
RGBrgb(31, 133, 66)
HSLhsl(141, 62%, 32%)
HSVhsv(141, 77%, 52%)
CMYKcmyk(76.7%, 0%, 50.4%, 47.8%)
CIE-LABlab(48.83, -43.92, 28.02)
CIE-LCHlch(48.83, 52.09, 147.47°)
OKLaboklab(54.41% -0.1181 0.0682)
OKLCHoklch(54.41% 0.136 150)
XYZxyz(9.9351, 17.4586, 7.9994)
Luminance0.1746 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8542 #851F62
analogous
#2F851F #1F8542 #1F8575
triadic
#1F8542 #421F85 #85421F
tetradic
#1F8542 #1F2F85 #851F62 #85751F
square
#1F8542 #1F2F85 #851F62 #85751F
split-complementary
#1F8542 #751F85 #851F2F
monochromatic
#082211 #135329 #1F8542 #2BB75B #4AD579

Accessibility & contrast

On white

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

On black

4.49
#1F8542 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##1F8542#FFFFFF#000000##FFFFFF
##1F85421.004.674.494.67
#FFFFFF4.671.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#86793D
Deuteranopia (green-blind)
#7A7147
Tritanopia (blue-blind)
#008375
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #1f8542;
/* rgb */ color: rgb(31, 133, 66);
/* oklch */ color: oklch(54.4% 0.136 150.0);
Tailwind
colors: {
  custom: {
    50: '#6ba977',
    500: '#1f8542',
    950: '#000000',
  },
}
SCSS
$custom: #1f8542;
$custom-light: #6ba977;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8542",
  "rgb": {
    "r": 31,
    "g": 133,
    "b": 66
  },
  "hsl": {
    "h": 140.588,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.54413,
    "c": 0.13635,
    "h": 150
  },
  "luminance": 0.1746
}

Semantic roles & 50–950 ramp

primary
#1F8542
secondary
#B74991
accent
#43ADE5
background
#F6FAF7
surface
#ECF4ED
border
#C7CEC8
text
#081009
muted
#7A7F7B

Preview Lab

Preview with #1F8542

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

Preview Lab → · Contrast checker → · Palette generator →

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