#1F7515#1F7515

#1F7515 is a mid, vivid green. Relative luminance 0.131; OKLCH L 49.3% C 0.151 H 141.7°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#1F7515
RGBrgb(31, 117, 21)
HSLhsl(114, 70%, 27%)
HSVhsv(114, 82%, 46%)
CMYKcmyk(73.5%, 0%, 82.1%, 54.1%)
CIE-LABlab(42.86, -43.53, 42.04)
CIE-LCHlch(42.86, 60.52, 136.00°)
OKLaboklab(49.32% -0.1187 0.0938)
OKLCHoklch(49.32% 0.151 141.7)
XYZxyz(7.0613, 13.0673, 2.8594)
Luminance0.1307 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7515 #6B1575
analogous
#4F7515 #1F7515 #15753B
triadic
#1F7515 #151F75 #75151F
tetradic
#1F7515 #154F75 #6B1575 #753B15
square
#1F7515 #154F75 #6B1575 #753B15
split-complementary
#1F7515 #3B1575 #75154F
monochromatic
#071A05 #11410C #1F7515 #2DA91E #3DD92B

Accessibility & contrast

On white

5.81
#1F7515 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#1F7515 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7515
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7515#FFFFFF#000000##FFFFFF
##1F75151.005.813.615.81
#FFFFFF5.811.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786900
Deuteranopia (green-blind)
#6E6320
Tritanopia (blue-blind)
#077163
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #1f7515;
/* rgb */ color: rgb(31, 117, 21);
/* oklch */ color: oklch(49.3% 0.151 141.7);
Tailwind
colors: {
  custom: {
    50: '#6a9e5b',
    500: '#1f7515',
    950: '#000000',
  },
}
SCSS
$custom: #1f7515;
$custom-light: #6a9e5b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7515",
  "rgb": {
    "r": 31,
    "g": 117,
    "b": 21
  },
  "hsl": {
    "h": 113.75,
    "s": 69.565,
    "l": 27.059
  },
  "oklch": {
    "l": 0.49319,
    "c": 0.15128,
    "h": 141.7
  },
  "luminance": 0.13068
}

Semantic roles & 50–950 ramp

primary
#1F7515
secondary
#9F3BAB
accent
#3BECDA
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070E04
muted
#7A7E79

Preview Lab

Preview with #1F7515

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

Preview Lab → · Contrast checker → · Palette generator →

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