#2A6C12#2A6C12

#2A6C12 is a mid, vivid green. Relative luminance 0.113; OKLCH L 47.0% C 0.137 H 139.2°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#2A6C12
RGBrgb(42, 108, 18)
HSLhsl(104, 71%, 25%)
HSVhsv(104, 83%, 42%)
CMYKcmyk(61.1%, 0%, 83.3%, 57.6%)
CIE-LABlab(40.02, -37.75, 40.45)
CIE-LCHlch(40.02, 55.33, 133.03°)
OKLaboklab(47.04% -0.104 0.0899)
OKLCHoklch(47.04% 0.137 139.2)
XYZxyz(6.4263, 11.2605, 2.4070)
Luminance0.1126 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6C12 #54126C
analogous
#576C12 #2A6C12 #126C27
triadic
#2A6C12 #122A6C #6C122A
tetradic
#2A6C12 #12576C #54126C #6C2712
square
#2A6C12 #12576C #54126C #6C2712
split-complementary
#2A6C12 #27126C #6C1257
monochromatic
#0A1A04 #163809 #2A6C12 #3EA01B #53D523

Accessibility & contrast

On white

6.46
#2A6C12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#2A6C12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A6C12
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6C12#FFFFFF#000000##FFFFFF
##2A6C121.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6F6200
Deuteranopia (green-blind)
#675C1D
Tritanopia (blue-blind)
#23685B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2a6c12;
/* rgb */ color: rgb(42, 108, 18);
/* oklch */ color: oklch(47.0% 0.137 139.2);
Tailwind
colors: {
  custom: {
    50: '#6d9758',
    500: '#2a6c12',
    950: '#000000',
  },
}
SCSS
$custom: #2a6c12;
$custom-light: #6d9758;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6c12",
  "rgb": {
    "r": 42,
    "g": 108,
    "b": 18
  },
  "hsl": {
    "h": 104,
    "s": 71.429,
    "l": 24.706
  },
  "oklch": {
    "l": 0.47044,
    "c": 0.13746,
    "h": 139.2
  },
  "luminance": 0.11261
}

Semantic roles & 50–950 ramp

primary
#2A6C12
secondary
#8636A3
accent
#3AEEBE
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#080D04
muted
#7B7E79

Preview Lab

Preview with #2A6C12

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

Preview Lab → · Contrast checker → · Palette generator →

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