#2A5D12#2A5D12

#2A5D12 is a dark, moderate green. Relative luminance 0.084; OKLCH L 42.7% C 0.118 H 137.8°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#2A5D12
RGBrgb(42, 93, 18)
HSLhsl(101, 68%, 22%)
HSVhsv(101, 81%, 36%)
CMYKcmyk(54.8%, 0%, 80.6%, 63.5%)
CIE-LABlab(34.73, -31.59, 35.37)
CIE-LCHlch(34.73, 47.42, 131.77°)
OKLaboklab(42.68% -0.0874 0.0793)
OKLCHoklch(42.68% 0.118 137.8)
XYZxyz(4.9782, 8.3642, 1.9243)
Luminance0.0837 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5D12 #45125D
analogous
#505D12 #2A5D12 #125D20
triadic
#2A5D12 #122A5D #5D122A
tetradic
#2A5D12 #12505D #45125D #5D2012
square
#2A5D12 #12505D #45125D #5D2012
split-complementary
#2A5D12 #20125D #5D1250
monochromatic
#0C1A05 #132A08 #2A5D12 #41901C #58C426

Accessibility & contrast

On white

7.86
#2A5D12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#2A5D12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5D12
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5D12#FFFFFF#000000##FFFFFF
##2A5D121.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#605403
Deuteranopia (green-blind)
#5A501A
Tritanopia (blue-blind)
#26594F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2a5d12;
/* rgb */ color: rgb(42, 93, 18);
/* oklch */ color: oklch(42.7% 0.118 137.8);
Tailwind
colors: {
  custom: {
    50: '#6a8b56',
    500: '#2a5d12',
    950: '#000000',
  },
}
SCSS
$custom: #2a5d12;
$custom-light: #6a8b56;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5d12",
  "rgb": {
    "r": 42,
    "g": 93,
    "b": 18
  },
  "hsl": {
    "h": 100.8,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.42684,
    "c": 0.11801,
    "h": 137.8
  },
  "luminance": 0.08365
}

Semantic roles & 50–950 ramp

primary
#2A5D12
secondary
#773595
accent
#3DEAB3
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2A5D12

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

Preview Lab → · Contrast checker → · Palette generator →

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