#2A6E12#2A6E12

#2A6E12 is a mid, vivid green. Relative luminance 0.117; OKLCH L 47.6% C 0.140 H 139.3°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#2A6E12
RGBrgb(42, 110, 18)
HSLhsl(104, 72%, 25%)
HSVhsv(104, 84%, 43%)
CMYKcmyk(61.8%, 0%, 83.6%, 56.9%)
CIE-LABlab(40.71, -38.54, 41.11)
CIE-LCHlch(40.71, 56.34, 133.15°)
OKLaboklab(47.62% -0.1061 0.0913)
OKLCHoklch(47.62% 0.14 139.3)
XYZxyz(6.6397, 11.6872, 2.4781)
Luminance0.1169 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6E12 #56126E
analogous
#586E12 #2A6E12 #126E28
triadic
#2A6E12 #122A6E #6E122A
tetradic
#2A6E12 #12586E #56126E #6E2812
square
#2A6E12 #12586E #56126E #6E2812
split-complementary
#2A6E12 #28126E #6E1258
monochromatic
#0A1A04 #163909 #2A6E12 #3EA31B #52D723

Accessibility & contrast

On white

6.29
#2A6E12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#2A6E12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A6E12
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6E12#FFFFFF#000000##FFFFFF
##2A6E121.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#716300
Deuteranopia (green-blind)
#695E1D
Tritanopia (blue-blind)
#226A5D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2a6e12;
/* rgb */ color: rgb(42, 110, 18);
/* oklch */ color: oklch(47.6% 0.140 139.3);
Tailwind
colors: {
  custom: {
    50: '#6d9859',
    500: '#2a6e12',
    950: '#000000',
  },
}
SCSS
$custom: #2a6e12;
$custom-light: #6d9859;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6e12",
  "rgb": {
    "r": 42,
    "g": 110,
    "b": 18
  },
  "hsl": {
    "h": 104.348,
    "s": 71.875,
    "l": 25.098
  },
  "oklch": {
    "l": 0.47622,
    "c": 0.13995,
    "h": 139.3
  },
  "luminance": 0.11688
}

Semantic roles & 50–950 ramp

primary
#2A6E12
secondary
#8837A5
accent
#39EFBF
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#080E04
muted
#7A7E79

Preview Lab

Preview with #2A6E12

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

Preview Lab → · Contrast checker → · Palette generator →

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