#2A7A15#2A7A15

#2A7A15 is a mid, vivid green. Relative luminance 0.145; OKLCH L 51.1% C 0.153 H 140.2°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#2A7A15
RGBrgb(42, 122, 21)
HSLhsl(108, 71%, 28%)
HSVhsv(108, 83%, 48%)
CMYKcmyk(65.6%, 0%, 82.8%, 52.2%)
CIE-LABlab(44.89, -42.89, 44.07)
CIE-LCHlch(44.89, 61.50, 134.23°)
OKLaboklab(51.08% -0.1177 0.0979)
OKLCHoklch(51.08% 0.153 140.2)
XYZxyz(8.0494, 14.4647, 3.0771)
Luminance0.1447 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7A15 #65157A
analogous
#5C7A15 #2A7A15 #157A33
triadic
#2A7A15 #152A7A #7A152A
tetradic
#2A7A15 #155C7A #65157A #7A3315
square
#2A7A15 #155C7A #65157A #7A3315
split-complementary
#2A7A15 #33157A #7A155C
monochromatic
#091A04 #18460C #2A7A15 #3CAE1E #52DB2E

Accessibility & contrast

On white

5.39
#2A7A15 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#2A7A15 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7A15
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7A15#FFFFFF#000000##FFFFFF
##2A7A151.005.393.895.39
#FFFFFF5.391.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E00
Deuteranopia (green-blind)
#746821
Tritanopia (blue-blind)
#1E7667
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2a7a15;
/* rgb */ color: rgb(42, 122, 21);
/* oklch */ color: oklch(51.1% 0.153 140.2);
Tailwind
colors: {
  custom: {
    50: '#6fa15c',
    500: '#2a7a15',
    950: '#000000',
  },
}
SCSS
$custom: #2a7a15;
$custom-light: #6fa15c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7a15",
  "rgb": {
    "r": 42,
    "g": 122,
    "b": 21
  },
  "hsl": {
    "h": 107.525,
    "s": 70.629,
    "l": 28.039
  },
  "oklch": {
    "l": 0.51083,
    "c": 0.15307,
    "h": 140.2
  },
  "luminance": 0.14465
}

Semantic roles & 50–950 ramp

primary
#2A7A15
secondary
#973BAF
accent
#3AEDC8
background
#F7FAF5
surface
#EDF3E9
border
#C8CDC5
text
#080F04
muted
#7B7F79

Preview Lab

Preview with #2A7A15

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

Preview Lab → · Contrast checker → · Palette generator →

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