#2A5815#2A5815

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

Color values

HEX#2A5815
RGBrgb(42, 88, 21)
HSLhsl(101, 61%, 21%)
HSVhsv(101, 76%, 35%)
CMYKcmyk(52.3%, 0%, 76.1%, 65.5%)
CIE-LABlab(32.97, -29.15, 32.38)
CIE-LCHlch(32.97, 43.57, 132.00°)
OKLaboklab(41.25% -0.0806 0.0735)
OKLCHoklch(41.25% 0.109 137.7)
XYZxyz(4.5798, 7.5255, 1.9206)
Luminance0.0753 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5815 #431558
analogous
#4C5815 #2A5815 #155822
triadic
#2A5815 #152A58 #58152A
tetradic
#2A5815 #154C58 #431558 #582215
square
#2A5815 #154C58 #431558 #582215
split-complementary
#2A5815 #221558 #58154C
monochromatic
#0C1906 #122709 #2A5815 #428921 #59BB2D

Accessibility & contrast

On white

8.38
#2A5815 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#2A5815 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5815
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5815#FFFFFF#000000##FFFFFF
##2A58151.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B500A
Deuteranopia (green-blind)
#554C1B
Tritanopia (blue-blind)
#27554B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2a5815;
/* rgb */ color: rgb(42, 88, 21);
/* oklch */ color: oklch(41.2% 0.109 137.7);
Tailwind
colors: {
  custom: {
    50: '#698757',
    500: '#2a5815',
    950: '#000000',
  },
}
SCSS
$custom: #2a5815;
$custom-light: #698757;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5815",
  "rgb": {
    "r": 42,
    "g": 88,
    "b": 21
  },
  "hsl": {
    "h": 101.194,
    "s": 61.468,
    "l": 21.373
  },
  "oklch": {
    "l": 0.41246,
    "c": 0.1091,
    "h": 137.7
  },
  "luminance": 0.07526
}

Semantic roles & 50–950 ramp

primary
#2A5815
secondary
#753990
accent
#43E5B2
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2A5815

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

Preview Lab → · Contrast checker → · Palette generator →

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