#1F7015#1F7015

#1F7015 is a mid, vivid green. Relative luminance 0.119; OKLCH L 47.9% C 0.145 H 141.6°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#1F7015
RGBrgb(31, 112, 21)
HSLhsl(113, 68%, 26%)
HSVhsv(113, 81%, 44%)
CMYKcmyk(72.3%, 0%, 81.2%, 56.1%)
CIE-LABlab(41.11, -41.75, 40.36)
CIE-LCHlch(41.11, 58.07, 135.97°)
OKLaboklab(47.86% -0.1139 0.0903)
OKLCHoklch(47.86% 0.145 141.6)
XYZxyz(6.4942, 11.9331, 2.6704)
Luminance0.1193 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7015 #661570
analogous
#4C7015 #1F7015 #157038
triadic
#1F7015 #151F70 #70151F
tetradic
#1F7015 #154C70 #661570 #703815
square
#1F7015 #154C70 #661570 #703815
split-complementary
#1F7015 #381570 #70154C
monochromatic
#071A05 #113C0B #1F7015 #2DA41F #3CD729

Accessibility & contrast

On white

6.20
#1F7015 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#1F7015 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7015
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7015#FFFFFF#000000##FFFFFF
##1F70151.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#736500
Deuteranopia (green-blind)
#6A5E1F
Tritanopia (blue-blind)
#0B6C5F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #1f7015;
/* rgb */ color: rgb(31, 112, 21);
/* oklch */ color: oklch(47.9% 0.145 141.6);
Tailwind
colors: {
  custom: {
    50: '#689a5a',
    500: '#1f7015',
    950: '#000000',
  },
}
SCSS
$custom: #1f7015;
$custom-light: #689a5a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7015",
  "rgb": {
    "r": 31,
    "g": 112,
    "b": 21
  },
  "hsl": {
    "h": 113.407,
    "s": 68.421,
    "l": 26.078
  },
  "oklch": {
    "l": 0.47862,
    "c": 0.14533,
    "h": 141.6
  },
  "luminance": 0.11934
}

Semantic roles & 50–950 ramp

primary
#1F7015
secondary
#9A3BA6
accent
#3DEBD8
background
#F6F9F5
surface
#EBF2E9
border
#C6CCC5
text
#070E04
muted
#7A7E79

Preview Lab

Preview with #1F7015

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

Preview Lab → · Contrast checker → · Palette generator →

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