#2A5E12#2A5E12

#2A5E12 is a dark, moderate green. Relative luminance 0.085; OKLCH L 43.0% C 0.119 H 137.9°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#2A5E12
RGBrgb(42, 94, 18)
HSLhsl(101, 68%, 22%)
HSVhsv(101, 81%, 37%)
CMYKcmyk(55.3%, 0%, 80.9%, 63.1%)
CIE-LABlab(35.08, -32.02, 35.72)
CIE-LCHlch(35.08, 47.97, 131.87°)
OKLaboklab(42.98% -0.0886 0.08)
OKLCHoklch(42.98% 0.119 137.9)
XYZxyz(5.0666, 8.5409, 1.9537)
Luminance0.0854 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5E12 #46125E
analogous
#505E12 #2A5E12 #125E20
triadic
#2A5E12 #122A5E #5E122A
tetradic
#2A5E12 #12505E #46125E #5E2012
square
#2A5E12 #12505E #46125E #5E2012
split-complementary
#2A5E12 #20125E #5E1250
monochromatic
#0B1A05 #132B08 #2A5E12 #41911C #58C526

Accessibility & contrast

On white

7.75
#2A5E12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#2A5E12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5E12
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5E12#FFFFFF#000000##FFFFFF
##2A5E121.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#615503
Deuteranopia (green-blind)
#5B511A
Tritanopia (blue-blind)
#265A50
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2a5e12;
/* rgb */ color: rgb(42, 94, 18);
/* oklch */ color: oklch(43.0% 0.119 137.9);
Tailwind
colors: {
  custom: {
    50: '#6a8c56',
    500: '#2a5e12',
    950: '#000000',
  },
}
SCSS
$custom: #2a5e12;
$custom-light: #6a8c56;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5e12",
  "rgb": {
    "r": 42,
    "g": 94,
    "b": 18
  },
  "hsl": {
    "h": 101.053,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.42976,
    "c": 0.11936,
    "h": 137.9
  },
  "luminance": 0.08541
}

Semantic roles & 50–950 ramp

primary
#2A5E12
secondary
#783596
accent
#3DEBB4
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2A5E12

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

Preview Lab → · Contrast checker → · Palette generator →

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