#1F7E15#1F7E15

#1F7E15 is a mid, vivid green. Relative luminance 0.153; OKLCH L 51.9% C 0.162 H 141.8°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#1F7E15
RGBrgb(31, 126, 21)
HSLhsl(114, 71%, 29%)
HSVhsv(114, 83%, 49%)
CMYKcmyk(75.4%, 0%, 83.3%, 50.6%)
CIE-LABlab(46.00, -46.65, 45.00)
CIE-LCHlch(46.00, 64.82, 136.03°)
OKLaboklab(51.92% -0.1271 0.1)
OKLCHoklch(51.92% 0.162 141.8)
XYZxyz(8.1608, 15.2662, 3.2259)
Luminance0.1527 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7E15 #74157E
analogous
#547E15 #1F7E15 #157E40
triadic
#1F7E15 #151F7E #7E151F
tetradic
#1F7E15 #15547E #74157E #7E4015
square
#1F7E15 #15547E #74157E #7E4015
split-complementary
#1F7E15 #40157E #7E1554
monochromatic
#061A04 #124A0C #1F7E15 #2CB21E #41DD31

Accessibility & contrast

On white

5.18
#1F7E15 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#1F7E15 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7E15
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7E15#FFFFFF#000000##FFFFFF
##1F7E151.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817100
Deuteranopia (green-blind)
#776A22
Tritanopia (blue-blind)
#007A6B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #1f7e15;
/* rgb */ color: rgb(31, 126, 21);
/* oklch */ color: oklch(51.9% 0.162 141.8);
Tailwind
colors: {
  custom: {
    50: '#6ca45c',
    500: '#1f7e15',
    950: '#000000',
  },
}
SCSS
$custom: #1f7e15;
$custom-light: #6ca45c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7e15",
  "rgb": {
    "r": 31,
    "g": 126,
    "b": 21
  },
  "hsl": {
    "h": 114.286,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.5192,
    "c": 0.16171,
    "h": 141.8
  },
  "luminance": 0.15267
}

Semantic roles & 50–950 ramp

primary
#1F7E15
secondary
#A83CB3
accent
#3AEEDD
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F04
muted
#7B7F79

Preview Lab

Preview with #1F7E15

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

Preview Lab → · Contrast checker → · Palette generator →

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