#2A6512#2A6512

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

Color values

HEX#2A6512
RGBrgb(42, 101, 18)
HSLhsl(103, 70%, 23%)
HSVhsv(103, 82%, 40%)
CMYKcmyk(58.4%, 0%, 82.2%, 60.4%)
CIE-LABlab(37.56, -34.95, 38.11)
CIE-LCHlch(37.56, 51.71, 132.52°)
OKLaboklab(45.02% -0.0965 0.085)
OKLCHoklch(45.02% 0.129 138.6)
XYZxyz(5.7175, 9.8428, 2.1707)
Luminance0.0984 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6512 #4D1265
analogous
#536512 #2A6512 #126524
triadic
#2A6512 #122A65 #65122A
tetradic
#2A6512 #125365 #4D1265 #652412
square
#2A6512 #125365 #4D1265 #652412
split-complementary
#2A6512 #241265 #651253
monochromatic
#0B1A05 #143109 #2A6512 #40991B #55CD25

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A6512#FFFFFF#000000##FFFFFF
##2A65121.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)
#685B00
Deuteranopia (green-blind)
#61571B
Tritanopia (blue-blind)
#246155
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2a6512;
/* rgb */ color: rgb(42, 101, 18);
/* oklch */ color: oklch(45.0% 0.129 138.6);
Tailwind
colors: {
  custom: {
    50: '#6b9157',
    500: '#2a6512',
    950: '#000000',
  },
}
SCSS
$custom: #2a6512;
$custom-light: #6b9157;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6512",
  "rgb": {
    "r": 42,
    "g": 101,
    "b": 18
  },
  "hsl": {
    "h": 102.651,
    "s": 69.748,
    "l": 23.333
  },
  "oklch": {
    "l": 0.45015,
    "c": 0.12856,
    "h": 138.6
  },
  "luminance": 0.09843
}

Semantic roles & 50–950 ramp

primary
#2A6512
secondary
#7F369D
accent
#3BEDB9
background
#F6F9F5
surface
#ECF1E9
border
#C7CBC5
text
#070D03
muted
#7A7E78

Preview Lab

Preview with #2A6512

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

Preview Lab → · Contrast checker → · Palette generator →

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