#1A7215#1A7215

#1A7215 is a mid, vivid green. Relative luminance 0.123; OKLCH L 48.3% C 0.149 H 142.3°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#1A7215
RGBrgb(26, 114, 21)
HSLhsl(117, 69%, 26%)
HSVhsv(117, 82%, 45%)
CMYKcmyk(77.2%, 0%, 81.6%, 55.3%)
CIE-LABlab(41.70, -43.42, 40.89)
CIE-LCHlch(41.70, 59.64, 136.72°)
OKLaboklab(48.32% -0.1181 0.0914)
OKLCHoklch(48.32% 0.149 142.3)
XYZxyz(6.5783, 12.3076, 2.7382)
Luminance0.1231 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A7215 #6D1572
analogous
#497215 #1A7215 #15723F
triadic
#1A7215 #151A72 #72151A
tetradic
#1A7215 #154972 #6D1572 #723F15
square
#1A7215 #154972 #6D1572 #723F15
split-complementary
#1A7215 #3F1572 #721549
monochromatic
#061A05 #0E3E0B #1A7215 #26A61F #33D82A

Accessibility & contrast

On white

6.07
#1A7215 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#1A7215 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1A7215
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A7215#FFFFFF#000000##FFFFFF
##1A72151.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756600
Deuteranopia (green-blind)
#6B6020
Tritanopia (blue-blind)
#006E61
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #1a7215;
/* rgb */ color: rgb(26, 114, 21);
/* oklch */ color: oklch(48.3% 0.149 142.3);
Tailwind
colors: {
  custom: {
    50: '#679b5b',
    500: '#1a7215',
    950: '#000000',
  },
}
SCSS
$custom: #1a7215;
$custom-light: #679b5b;
$custom-dark: #000000;
JSON
{
  "hex": "#1a7215",
  "rgb": {
    "r": 26,
    "g": 114,
    "b": 21
  },
  "hsl": {
    "h": 116.774,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.48321,
    "c": 0.14937,
    "h": 142.3
  },
  "luminance": 0.12308
}

Semantic roles & 50–950 ramp

primary
#1A7215
secondary
#A23BA8
accent
#3CECE2
background
#F6F9F5
surface
#EBF2E9
border
#C6CCC5
text
#070E04
muted
#7A7E79

Preview Lab

Preview with #1A7215

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

Preview Lab → · Contrast checker → · Palette generator →

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