#2A6D12#2A6D12

#2A6D12 is a mid, vivid green. Relative luminance 0.115; OKLCH L 47.3% C 0.139 H 139.2°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#2A6D12
RGBrgb(42, 109, 18)
HSLhsl(104, 72%, 25%)
HSVhsv(104, 83%, 43%)
CMYKcmyk(61.5%, 0%, 83.5%, 57.3%)
CIE-LABlab(40.37, -38.15, 40.78)
CIE-LCHlch(40.37, 55.84, 133.09°)
OKLaboklab(47.33% -0.1051 0.0906)
OKLCHoklch(47.33% 0.139 139.2)
XYZxyz(6.5324, 11.4726, 2.4423)
Luminance0.1147 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6D12 #55126D
analogous
#586D12 #2A6D12 #126D28
triadic
#2A6D12 #122A6D #6D122A
tetradic
#2A6D12 #12586D #55126D #6D2812
square
#2A6D12 #12586D #55126D #6D2812
split-complementary
#2A6D12 #28126D #6D1258
monochromatic
#0A1A04 #163809 #2A6D12 #3EA21B #52D623

Accessibility & contrast

On white

6.37
#2A6D12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#2A6D12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A6D12
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6D12#FFFFFF#000000##FFFFFF
##2A6D121.006.373.296.37
#FFFFFF6.371.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#706300
Deuteranopia (green-blind)
#685D1D
Tritanopia (blue-blind)
#22695C
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2a6d12;
/* rgb */ color: rgb(42, 109, 18);
/* oklch */ color: oklch(47.3% 0.139 139.2);
Tailwind
colors: {
  custom: {
    50: '#6d9759',
    500: '#2a6d12',
    950: '#000000',
  },
}
SCSS
$custom: #2a6d12;
$custom-light: #6d9759;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6d12",
  "rgb": {
    "r": 42,
    "g": 109,
    "b": 18
  },
  "hsl": {
    "h": 104.176,
    "s": 71.654,
    "l": 24.902
  },
  "oklch": {
    "l": 0.47333,
    "c": 0.1387,
    "h": 139.2
  },
  "luminance": 0.11473
}

Semantic roles & 50–950 ramp

primary
#2A6D12
secondary
#8737A4
accent
#39EEBF
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#080D04
muted
#7B7E79

Preview Lab

Preview with #2A6D12

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

Preview Lab → · Contrast checker → · Palette generator →

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