#2A5D18#2A5D18

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

Color values

HEX#2A5D18
RGBrgb(42, 93, 24)
HSLhsl(104, 59%, 23%)
HSVhsv(104, 74%, 36%)
CMYKcmyk(54.8%, 0%, 74.2%, 63.5%)
CIE-LABlab(34.78, -31.09, 32.93)
CIE-LCHlch(34.78, 45.28, 133.36°)
OKLaboklab(42.74% -0.0856 0.0751)
OKLCHoklch(42.74% 0.114 138.8)
XYZxyz(5.0339, 8.3865, 2.2175)
Luminance0.0839 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5D18 #4B185D
analogous
#4C5D18 #2A5D18 #185D28
triadic
#2A5D18 #182A5D #5D182A
tetradic
#2A5D18 #184C5D #4B185D #5D2818
square
#2A5D18 #184C5D #4B185D #5D2818
split-complementary
#2A5D18 #28185D #5D184C
monochromatic
#0B1806 #142C0B #2A5D18 #408E25 #56BE31

Accessibility & contrast

On white

7.84
#2A5D18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#2A5D18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5D18
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5D18#FFFFFF#000000##FFFFFF
##2A5D181.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#60540E
Deuteranopia (green-blind)
#59501E
Tritanopia (blue-blind)
#265A4F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2a5d18;
/* rgb */ color: rgb(42, 93, 24);
/* oklch */ color: oklch(42.7% 0.114 138.8);
Tailwind
colors: {
  custom: {
    50: '#698b59',
    500: '#2a5d18',
    950: '#000000',
  },
}
SCSS
$custom: #2a5d18;
$custom-light: #698b59;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5d18",
  "rgb": {
    "r": 42,
    "g": 93,
    "b": 24
  },
  "hsl": {
    "h": 104.348,
    "s": 58.974,
    "l": 22.941
  },
  "oklch": {
    "l": 0.42735,
    "c": 0.11389,
    "h": 138.8
  },
  "luminance": 0.08387
}

Semantic roles & 50–950 ramp

primary
#2A5D18
secondary
#7D3D93
accent
#46E2B9
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070C04
muted
#7A7D79

Preview Lab

Preview with #2A5D18

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

Preview Lab → · Contrast checker → · Palette generator →

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