#2A7515#2A7515

#2A7515 is a mid, vivid green. Relative luminance 0.133; OKLCH L 49.7% C 0.147 H 140.0°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#2A7515
RGBrgb(42, 117, 21)
HSLhsl(107, 70%, 27%)
HSVhsv(107, 82%, 46%)
CMYKcmyk(64.1%, 0%, 82.1%, 54.1%)
CIE-LABlab(43.16, -41.03, 42.43)
CIE-LCHlch(43.16, 59.02, 134.03°)
OKLaboklab(49.65% -0.1126 0.0945)
OKLCHoklch(49.65% 0.147 140)
XYZxyz(7.4512, 13.2683, 2.8777)
Luminance0.1327 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7515 #601575
analogous
#5A7515 #2A7515 #157530
triadic
#2A7515 #152A75 #75152A
tetradic
#2A7515 #155A75 #601575 #753015
square
#2A7515 #155A75 #601575 #753015
split-complementary
#2A7515 #301575 #75155A
monochromatic
#091A05 #17410C #2A7515 #3DA91E #51D92B

Accessibility & contrast

On white

5.75
#2A7515 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#2A7515 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7515
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7515#FFFFFF#000000##FFFFFF
##2A75151.005.753.655.75
#FFFFFF5.751.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786A00
Deuteranopia (green-blind)
#6F6420
Tritanopia (blue-blind)
#207163
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #2a7515;
/* rgb */ color: rgb(42, 117, 21);
/* oklch */ color: oklch(49.7% 0.147 140.0);
Tailwind
colors: {
  custom: {
    50: '#6e9d5b',
    500: '#2a7515',
    950: '#000000',
  },
}
SCSS
$custom: #2a7515;
$custom-light: #6e9d5b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7515",
  "rgb": {
    "r": 42,
    "g": 117,
    "b": 21
  },
  "hsl": {
    "h": 106.875,
    "s": 69.565,
    "l": 27.059
  },
  "oklch": {
    "l": 0.49653,
    "c": 0.14703,
    "h": 140
  },
  "luminance": 0.13269
}

Semantic roles & 50–950 ramp

primary
#2A7515
secondary
#923BAB
accent
#3BECC6
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2A7515

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

Preview Lab → · Contrast checker → · Palette generator →

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