#2A7215#2A7215

#2A7215 is a mid, vivid green. Relative luminance 0.126; OKLCH L 48.8% C 0.143 H 139.9°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#2A7215
RGBrgb(42, 114, 21)
HSLhsl(106, 69%, 26%)
HSVhsv(106, 82%, 45%)
CMYKcmyk(63.2%, 0%, 81.6%, 55.3%)
CIE-LABlab(42.12, -39.89, 41.44)
CIE-LCHlch(42.12, 57.52, 133.90°)
OKLaboklab(48.79% -0.1096 0.0924)
OKLCHoklch(48.79% 0.143 139.9)
XYZxyz(7.1072, 12.5804, 2.7630)
Luminance0.1258 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7215 #5D1572
analogous
#597215 #2A7215 #15722F
triadic
#2A7215 #152A72 #72152A
tetradic
#2A7215 #155972 #5D1572 #722F15
square
#2A7215 #155972 #5D1572 #722F15
split-complementary
#2A7215 #2F1572 #721559
monochromatic
#0A1A05 #173E0B #2A7215 #3DA61F #51D82A

Accessibility & contrast

On white

5.97
#2A7215 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#2A7215 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2A7215#FFFFFF#000000##FFFFFF
##2A72151.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756700
Deuteranopia (green-blind)
#6D6120
Tritanopia (blue-blind)
#206E61
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #2a7215;
/* rgb */ color: rgb(42, 114, 21);
/* oklch */ color: oklch(48.8% 0.143 139.9);
Tailwind
colors: {
  custom: {
    50: '#6e9b5b',
    500: '#2a7215',
    950: '#000000',
  },
}
SCSS
$custom: #2a7215;
$custom-light: #6e9b5b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7215",
  "rgb": {
    "r": 42,
    "g": 114,
    "b": 21
  },
  "hsl": {
    "h": 106.452,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.48792,
    "c": 0.14334,
    "h": 139.9
  },
  "luminance": 0.12581
}

Semantic roles & 50–950 ramp

primary
#2A7215
secondary
#8F3BA8
accent
#3CECC4
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2A7215

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

Preview Lab → · Contrast checker → · Palette generator →

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