#1F8D38#1F8D38

#1F8D38 is a mid, vivid green. Relative luminance 0.196; OKLCH L 56.5% C 0.156 H 146.6°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#1F8D38
RGBrgb(31, 141, 56)
HSLhsl(134, 64%, 34%)
HSVhsv(134, 78%, 55%)
CMYKcmyk(78%, 0%, 60.3%, 44.7%)
CIE-LABlab(51.41, -48.37, 36.26)
CIE-LCHlch(51.41, 60.45, 143.14°)
OKLaboklab(56.51% -0.1302 0.0858)
OKLCHoklch(56.51% 0.156 146.6)
XYZxyz(10.8030, 19.6253, 6.9593)
Luminance0.1963 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8D38 #8D1F74
analogous
#3D8D1F #1F8D38 #1F8D6F
triadic
#1F8D38 #381F8D #8D381F
tetradic
#1F8D38 #1F3D8D #8D1F74 #8D6F1F
square
#1F8D38 #1F3D8D #8D1F74 #8D6F1F
split-complementary
#1F8D38 #6F1F8D #8D1F3D
monochromatic
#092910 #145B24 #1F8D38 #2ABF4C #4ED86E

Accessibility & contrast

On white

4.26
#1F8D38 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#1F8D38 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8D38
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8D38#FFFFFF#000000##000000
##1F8D381.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F802F
Deuteranopia (green-blind)
#83773F
Tritanopia (blue-blind)
#008A7A
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #1f8d38;
/* rgb */ color: rgb(31, 141, 56);
/* oklch */ color: oklch(56.5% 0.156 146.6);
Tailwind
colors: {
  custom: {
    50: '#6eaf71',
    500: '#1f8d38',
    950: '#000000',
  },
}
SCSS
$custom: #1f8d38;
$custom-light: #6eaf71;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8d38",
  "rgb": {
    "r": 31,
    "g": 141,
    "b": 56
  },
  "hsl": {
    "h": 133.636,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.56506,
    "c": 0.15592,
    "h": 146.6
  },
  "luminance": 0.19627
}

Semantic roles & 50–950 ramp

primary
#1F8D38
secondary
#BB4DA2
accent
#41C1E7
background
#F7FAF7
surface
#EDF5ED
border
#C8CFC8
text
#081008
muted
#7B7F7B

Preview Lab

Preview with #1F8D38

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

Preview Lab → · Contrast checker → · Palette generator →

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