#2A5A12#2A5A12

#2A5A12 is a dark, moderate green. Relative luminance 0.078; OKLCH L 41.8% C 0.114 H 137.4°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#2A5A12
RGBrgb(42, 90, 18)
HSLhsl(100, 67%, 21%)
HSVhsv(100, 80%, 35%)
CMYKcmyk(53.3%, 0%, 80%, 64.7%)
CIE-LABlab(33.66, -30.29, 34.32)
CIE-LCHlch(33.66, 45.77, 131.43°)
OKLaboklab(41.81% -0.0839 0.0771)
OKLCHoklch(41.81% 0.114 137.4)
XYZxyz(4.7200, 7.8479, 1.8382)
Luminance0.0785 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5A12 #42125A
analogous
#4E5A12 #2A5A12 #125A1E
triadic
#2A5A12 #122A5A #5A122A
tetradic
#2A5A12 #124E5A #42125A #5A1E12
square
#2A5A12 #124E5A #42125A #5A1E12
split-complementary
#2A5A12 #1E125A #5A124E
monochromatic
#0C1A05 #122708 #2A5A12 #428D1C #5AC026

Accessibility & contrast

On white

8.17
#2A5A12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#2A5A12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5A12
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5A12#FFFFFF#000000##FFFFFF
##2A5A121.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D5204
Deuteranopia (green-blind)
#574E19
Tritanopia (blue-blind)
#27574C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2a5a12;
/* rgb */ color: rgb(42, 90, 18);
/* oklch */ color: oklch(41.8% 0.114 137.4);
Tailwind
colors: {
  custom: {
    50: '#698956',
    500: '#2a5a12',
    950: '#000000',
  },
}
SCSS
$custom: #2a5a12;
$custom-light: #698956;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5a12",
  "rgb": {
    "r": 42,
    "g": 90,
    "b": 18
  },
  "hsl": {
    "h": 100,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.41806,
    "c": 0.11394,
    "h": 137.4
  },
  "luminance": 0.07848
}

Semantic roles & 50–950 ramp

primary
#2A5A12
secondary
#733593
accent
#3EEAB0
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2A5A12

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

Preview Lab → · Contrast checker → · Palette generator →

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