#2A5C12#2A5C12

#2A5C12 is a dark, moderate green. Relative luminance 0.082; OKLCH L 42.4% C 0.117 H 137.7°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#2A5C12
RGBrgb(42, 92, 18)
HSLhsl(101, 67%, 22%)
HSVhsv(101, 80%, 36%)
CMYKcmyk(54.3%, 0%, 80.4%, 63.9%)
CIE-LABlab(34.38, -31.16, 35.02)
CIE-LCHlch(34.38, 46.88, 131.66°)
OKLaboklab(42.39% -0.0863 0.0785)
OKLCHoklch(42.39% 0.117 137.7)
XYZxyz(4.8910, 8.1898, 1.8952)
Luminance0.0819 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5C12 #44125C
analogous
#4F5C12 #2A5C12 #125C1F
triadic
#2A5C12 #122A5C #5C122A
tetradic
#2A5C12 #124F5C #44125C #5C1F12
square
#2A5C12 #124F5C #44125C #5C1F12
split-complementary
#2A5C12 #1F125C #5C124F
monochromatic
#0C1A05 #132908 #2A5C12 #418F1C #59C226

Accessibility & contrast

On white

7.96
#2A5C12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#2A5C12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5C12
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5C12#FFFFFF#000000##FFFFFF
##2A5C121.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F5304
Deuteranopia (green-blind)
#594F1A
Tritanopia (blue-blind)
#26584E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2a5c12;
/* rgb */ color: rgb(42, 92, 18);
/* oklch */ color: oklch(42.4% 0.117 137.7);
Tailwind
colors: {
  custom: {
    50: '#6a8b56',
    500: '#2a5c12',
    950: '#000000',
  },
}
SCSS
$custom: #2a5c12;
$custom-light: #6a8b56;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5c12",
  "rgb": {
    "r": 42,
    "g": 92,
    "b": 18
  },
  "hsl": {
    "h": 100.541,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.42391,
    "c": 0.11666,
    "h": 137.7
  },
  "luminance": 0.0819
}

Semantic roles & 50–950 ramp

primary
#2A5C12
secondary
#763594
accent
#3EEAB2
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2A5C12

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

Preview Lab → · Contrast checker → · Palette generator →

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