#2A6515#2A6515

#2A6515 is a mid, vivid green. Relative luminance 0.099; OKLCH L 45.0% C 0.127 H 139.0°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#2A6515
RGBrgb(42, 101, 21)
HSLhsl(104, 66%, 24%)
HSVhsv(104, 79%, 40%)
CMYKcmyk(58.4%, 0%, 79.2%, 60.4%)
CIE-LABlab(37.58, -34.73, 37.02)
CIE-LCHlch(37.58, 50.76, 133.17°)
OKLaboklab(45.04% -0.0957 0.0832)
OKLCHoklch(45.04% 0.127 139)
XYZxyz(5.7437, 9.8533, 2.3085)
Luminance0.0985 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6515 #501565
analogous
#526515 #2A6515 #156528
triadic
#2A6515 #152A65 #65152A
tetradic
#2A6515 #155265 #501565 #652815
square
#2A6515 #155265 #501565 #652815
split-complementary
#2A6515 #281565 #651552
monochromatic
#0B1905 #15320A #2A6515 #3F9820 #54CA2A

Accessibility & contrast

On white

7.07
#2A6515 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#2A6515 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A6515
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6515#FFFFFF#000000##FFFFFF
##2A65151.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#685B05
Deuteranopia (green-blind)
#61571D
Tritanopia (blue-blind)
#246156
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2a6515;
/* rgb */ color: rgb(42, 101, 21);
/* oklch */ color: oklch(45.0% 0.127 139.0);
Tailwind
colors: {
  custom: {
    50: '#6b9159',
    500: '#2a6515',
    950: '#000000',
  },
}
SCSS
$custom: #2a6515;
$custom-light: #6b9159;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6515",
  "rgb": {
    "r": 42,
    "g": 101,
    "b": 21
  },
  "hsl": {
    "h": 104.25,
    "s": 65.574,
    "l": 23.922
  },
  "oklch": {
    "l": 0.45037,
    "c": 0.12679,
    "h": 139
  },
  "luminance": 0.09854
}

Semantic roles & 50–950 ramp

primary
#2A6515
secondary
#823A9C
accent
#3FE9BC
background
#F6F9F5
surface
#ECF1E9
border
#C7CBC5
text
#070D04
muted
#7A7E79

Preview Lab

Preview with #2A6515

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

Preview Lab → · Contrast checker → · Palette generator →

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