#2A5715#2A5715

#2A5715 is a dark, moderate green. Relative luminance 0.074; OKLCH L 41.0% C 0.108 H 137.5°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#2A5715
RGBrgb(42, 87, 21)
HSLhsl(101, 61%, 21%)
HSVhsv(101, 76%, 34%)
CMYKcmyk(51.7%, 0%, 75.9%, 65.9%)
CIE-LABlab(32.62, -28.70, 32.01)
CIE-LCHlch(32.62, 42.99, 131.88°)
OKLaboklab(40.95% -0.0794 0.0727)
OKLCHoklch(40.95% 0.108 137.5)
XYZxyz(4.4983, 7.3625, 1.8934)
Luminance0.0736 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5715 #421557
analogous
#4B5715 #2A5715 #155721
triadic
#2A5715 #152A57 #57152A
tetradic
#2A5715 #154B57 #421557 #572115
square
#2A5715 #154B57 #421557 #572115
split-complementary
#2A5715 #211557 #57154B
monochromatic
#0C1906 #122609 #2A5715 #428821 #5ABA2D

Accessibility & contrast

On white

8.49
#2A5715 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#2A5715 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5715
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5715#FFFFFF#000000##FFFFFF
##2A57151.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A4F0B
Deuteranopia (green-blind)
#544B1B
Tritanopia (blue-blind)
#27544A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2a5715;
/* rgb */ color: rgb(42, 87, 21);
/* oklch */ color: oklch(41.0% 0.108 137.5);
Tailwind
colors: {
  custom: {
    50: '#688757',
    500: '#2a5715',
    950: '#000000',
  },
}
SCSS
$custom: #2a5715;
$custom-light: #688757;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5715",
  "rgb": {
    "r": 42,
    "g": 87,
    "b": 21
  },
  "hsl": {
    "h": 100.909,
    "s": 61.111,
    "l": 21.176
  },
  "oklch": {
    "l": 0.40954,
    "c": 0.10768,
    "h": 137.5
  },
  "luminance": 0.07363
}

Semantic roles & 50–950 ramp

primary
#2A5715
secondary
#73398F
accent
#44E4B1
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060B03
muted
#7A7C78

Preview Lab

Preview with #2A5715

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

Preview Lab → · Contrast checker → · Palette generator →

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