#2A5813#2A5813

#2A5813 is a dark, moderate green. Relative luminance 0.075; OKLCH L 41.2% C 0.111 H 137.3°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#2A5813
RGBrgb(42, 88, 19)
HSLhsl(100, 64%, 21%)
HSVhsv(100, 78%, 35%)
CMYKcmyk(52.3%, 0%, 78.4%, 65.5%)
CIE-LABlab(32.96, -29.32, 33.21)
CIE-LCHlch(32.96, 44.30, 131.44°)
OKLaboklab(41.23% -0.0812 0.0749)
OKLCHoklch(41.23% 0.111 137.3)
XYZxyz(4.5620, 7.5184, 1.8268)
Luminance0.0752 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5813 #411358
analogous
#4C5813 #2A5813 #13581E
triadic
#2A5813 #132A58 #58132A
tetradic
#2A5813 #134C58 #411358 #581E13
square
#2A5813 #134C58 #411358 #581E13
split-complementary
#2A5813 #1E1358 #58134C
monochromatic
#0C1905 #122608 #2A5813 #428A1E #5ABD29

Accessibility & contrast

On white

8.39
#2A5813 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#2A5813 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5813
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5813#FFFFFF#000000##FFFFFF
##2A58131.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B5007
Deuteranopia (green-blind)
#554C1A
Tritanopia (blue-blind)
#27554B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2a5813;
/* rgb */ color: rgb(42, 88, 19);
/* oklch */ color: oklch(41.2% 0.111 137.3);
Tailwind
colors: {
  custom: {
    50: '#698756',
    500: '#2a5813',
    950: '#000000',
  },
}
SCSS
$custom: #2a5813;
$custom-light: #698756;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5813",
  "rgb": {
    "r": 42,
    "g": 88,
    "b": 19
  },
  "hsl": {
    "h": 100,
    "s": 64.486,
    "l": 20.98
  },
  "oklch": {
    "l": 0.41229,
    "c": 0.11051,
    "h": 137.3
  },
  "luminance": 0.07519
}

Semantic roles & 50–950 ramp

primary
#2A5813
secondary
#723790
accent
#40E7B0
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2A5813

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

Preview Lab → · Contrast checker → · Palette generator →

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