#2A5915#2A5915

#2A5915 is a dark, moderate green. Relative luminance 0.077; OKLCH L 41.5% C 0.111 H 137.8°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#2A5915
RGBrgb(42, 89, 21)
HSLhsl(101, 62%, 22%)
HSVhsv(101, 76%, 35%)
CMYKcmyk(52.8%, 0%, 76.4%, 65.1%)
CIE-LABlab(33.33, -29.60, 32.74)
CIE-LCHlch(33.33, 44.14, 132.11°)
OKLaboklab(41.54% -0.0818 0.0742)
OKLCHoklch(41.54% 0.111 137.8)
XYZxyz(4.6624, 7.6908, 1.9481)
Luminance0.0769 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5915 #441559
analogous
#4C5915 #2A5915 #155922
triadic
#2A5915 #152A59 #59152A
tetradic
#2A5915 #154C59 #441559 #592215
square
#2A5915 #154C59 #441559 #592215
split-complementary
#2A5915 #221559 #59154C
monochromatic
#0C1906 #132709 #2A5915 #418B21 #59BC2C

Accessibility & contrast

On white

8.27
#2A5915 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#2A5915 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5915
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5915#FFFFFF#000000##FFFFFF
##2A59151.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C510A
Deuteranopia (green-blind)
#564D1B
Tritanopia (blue-blind)
#27564C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2a5915;
/* rgb */ color: rgb(42, 89, 21);
/* oklch */ color: oklch(41.5% 0.111 137.8);
Tailwind
colors: {
  custom: {
    50: '#698857',
    500: '#2a5915',
    950: '#000000',
  },
}
SCSS
$custom: #2a5915;
$custom-light: #698857;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5915",
  "rgb": {
    "r": 42,
    "g": 89,
    "b": 21
  },
  "hsl": {
    "h": 101.471,
    "s": 61.818,
    "l": 21.569
  },
  "oklch": {
    "l": 0.41539,
    "c": 0.1105,
    "h": 137.8
  },
  "luminance": 0.07691
}

Semantic roles & 50–950 ramp

primary
#2A5915
secondary
#763991
accent
#43E5B3
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2A5915

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

Preview Lab → · Contrast checker → · Palette generator →

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