#1F7215#1F7215

#1F7215 is a mid, vivid green. Relative luminance 0.124; OKLCH L 48.4% C 0.148 H 141.6°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#1F7215
RGBrgb(31, 114, 21)
HSLhsl(114, 69%, 26%)
HSVhsv(114, 82%, 45%)
CMYKcmyk(72.8%, 0%, 81.6%, 55.3%)
CIE-LABlab(41.81, -42.47, 41.03)
CIE-LCHlch(41.81, 59.05, 135.98°)
OKLaboklab(48.45% -0.1158 0.0917)
OKLCHoklch(48.45% 0.148 141.6)
XYZxyz(6.7174, 12.3794, 2.7448)
Luminance0.1238 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7215 #681572
analogous
#4E7215 #1F7215 #15723A
triadic
#1F7215 #151F72 #72151F
tetradic
#1F7215 #154E72 #681572 #723A15
square
#1F7215 #154E72 #681572 #723A15
split-complementary
#1F7215 #3A1572 #72154E
monochromatic
#071A05 #113E0B #1F7215 #2DA61F #3CD82A

Accessibility & contrast

On white

6.04
#1F7215 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#1F7215 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7215
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7215#FFFFFF#000000##FFFFFF
##1F72151.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756700
Deuteranopia (green-blind)
#6B6020
Tritanopia (blue-blind)
#0A6E61
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #1f7215;
/* rgb */ color: rgb(31, 114, 21);
/* oklch */ color: oklch(48.4% 0.148 141.6);
Tailwind
colors: {
  custom: {
    50: '#699b5b',
    500: '#1f7215',
    950: '#000000',
  },
}
SCSS
$custom: #1f7215;
$custom-light: #699b5b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7215",
  "rgb": {
    "r": 31,
    "g": 114,
    "b": 21
  },
  "hsl": {
    "h": 113.548,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.48446,
    "c": 0.14772,
    "h": 141.6
  },
  "luminance": 0.1238
}

Semantic roles & 50–950 ramp

primary
#1F7215
secondary
#9C3BA8
accent
#3CECD9
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070E04
muted
#7A7E79

Preview Lab

Preview with #1F7215

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

Preview Lab → · Contrast checker → · Palette generator →

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