#2A6F12#2A6F12

#2A6F12 is a mid, vivid green. Relative luminance 0.119; OKLCH L 47.9% C 0.141 H 139.4°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#2A6F12
RGBrgb(42, 111, 18)
HSLhsl(105, 72%, 25%)
HSVhsv(105, 84%, 44%)
CMYKcmyk(62.2%, 0%, 83.8%, 56.5%)
CIE-LABlab(41.06, -38.92, 41.43)
CIE-LCHlch(41.06, 56.85, 133.21°)
OKLaboklab(47.91% -0.1072 0.0919)
OKLCHoklch(47.91% 0.141 139.4)
XYZxyz(6.7482, 11.9042, 2.5143)
Luminance0.1191 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6F12 #57126F
analogous
#586F12 #2A6F12 #126F28
triadic
#2A6F12 #122A6F #6F122A
tetradic
#2A6F12 #12586F #57126F #6F2812
square
#2A6F12 #12586F #57126F #6F2812
split-complementary
#2A6F12 #28126F #6F1258
monochromatic
#0A1A04 #163A09 #2A6F12 #3EA41B #52D823

Accessibility & contrast

On white

6.21
#2A6F12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#2A6F12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A6F12
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6F12#FFFFFF#000000##FFFFFF
##2A6F121.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#726400
Deuteranopia (green-blind)
#6A5F1D
Tritanopia (blue-blind)
#226B5E
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2a6f12;
/* rgb */ color: rgb(42, 111, 18);
/* oklch */ color: oklch(47.9% 0.141 139.4);
Tailwind
colors: {
  custom: {
    50: '#6d9959',
    500: '#2a6f12',
    950: '#000000',
  },
}
SCSS
$custom: #2a6f12;
$custom-light: #6d9959;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6f12",
  "rgb": {
    "r": 42,
    "g": 111,
    "b": 18
  },
  "hsl": {
    "h": 104.516,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.4791,
    "c": 0.14119,
    "h": 139.4
  },
  "luminance": 0.11905
}

Semantic roles & 50–950 ramp

primary
#2A6F12
secondary
#8937A6
accent
#39EFC0
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#080E04
muted
#7A7E79

Preview Lab

Preview with #2A6F12

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

Preview Lab → · Contrast checker → · Palette generator →

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