#1F8D15#1F8D15

#1F8D15 is a mid, vivid green. Relative luminance 0.194; OKLCH L 56.2% C 0.178 H 142.0°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#1F8D15
RGBrgb(31, 141, 21)
HSLhsl(115, 74%, 32%)
HSVhsv(115, 85%, 55%)
CMYKcmyk(78%, 0%, 85.1%, 44.7%)
CIE-LABlab(51.15, -51.62, 49.76)
CIE-LCHlch(51.15, 71.70, 136.05°)
OKLaboklab(56.2% -0.1405 0.1099)
OKLCHoklch(56.2% 0.178 142)
XYZxyz(10.2247, 19.3940, 3.9139)
Luminance0.1940 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8D15 #83158D
analogous
#5B8D15 #1F8D15 #158D47
triadic
#1F8D15 #151F8D #8D151F
tetradic
#1F8D15 #155B8D #83158D #8D4715
square
#1F8D15 #155B8D #83158D #8D4715
split-complementary
#1F8D15 #47158D #8D155B
monochromatic
#082205 #13580D #1F8D15 #2BC21D #49E23B

Accessibility & contrast

On white

4.30
#1F8D15 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#1F8D15 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8D15
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8D15#FFFFFF#000000##000000
##1F8D151.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F00
Deuteranopia (green-blind)
#847725
Tritanopia (blue-blind)
#008878
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #1f8d15;
/* rgb */ color: rgb(31, 141, 21);
/* oklch */ color: oklch(56.2% 0.178 142.0);
Tailwind
colors: {
  custom: {
    50: '#70af5f',
    500: '#1f8d15',
    950: '#000000',
  },
}
SCSS
$custom: #1f8d15;
$custom-light: #70af5f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8d15",
  "rgb": {
    "r": 31,
    "g": 141,
    "b": 21
  },
  "hsl": {
    "h": 115,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.562,
    "c": 0.17843,
    "h": 142
  },
  "luminance": 0.19395
}

Semantic roles & 50–950 ramp

primary
#1F8D15
secondary
#B63DC1
accent
#37F1E1
background
#F7FAF5
surface
#EDF5EA
border
#C8CFC6
text
#091105
muted
#7B8079

Preview Lab

Preview with #1F8D15

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

Preview Lab → · Contrast checker → · Palette generator →

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