#2A5515#2A5515

#2A5515 is a dark, moderate green. Relative luminance 0.070; OKLCH L 40.4% C 0.105 H 137.2°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#2A5515
RGBrgb(42, 85, 21)
HSLhsl(100, 60%, 21%)
HSVhsv(100, 75%, 33%)
CMYKcmyk(50.6%, 0%, 75.3%, 66.7%)
CIE-LABlab(31.90, -27.79, 31.27)
CIE-LCHlch(31.90, 41.84, 131.63°)
OKLaboklab(40.37% -0.077 0.0712)
OKLCHoklch(40.37% 0.105 137.2)
XYZxyz(4.3386, 7.0431, 1.8402)
Luminance0.0704 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5515 #401555
analogous
#4A5515 #2A5515 #155520
triadic
#2A5515 #152A55 #55152A
tetradic
#2A5515 #154A55 #401555 #552015
square
#2A5515 #154A55 #401555 #552015
split-complementary
#2A5515 #201555 #55154A
monochromatic
#0C1906 #122409 #2A5515 #428621 #5AB72D

Accessibility & contrast

On white

8.72
#2A5515 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#2A5515 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5515
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5515#FFFFFF#000000##FFFFFF
##2A55151.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#584D0B
Deuteranopia (green-blind)
#524A1B
Tritanopia (blue-blind)
#285248
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2a5515;
/* rgb */ color: rgb(42, 85, 21);
/* oklch */ color: oklch(40.4% 0.105 137.2);
Tailwind
colors: {
  custom: {
    50: '#688556',
    500: '#2a5515',
    950: '#000000',
  },
}
SCSS
$custom: #2a5515;
$custom-light: #688556;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5515",
  "rgb": {
    "r": 42,
    "g": 85,
    "b": 21
  },
  "hsl": {
    "h": 100.313,
    "s": 60.377,
    "l": 20.784
  },
  "oklch": {
    "l": 0.40368,
    "c": 0.10482,
    "h": 137.2
  },
  "luminance": 0.07043
}

Semantic roles & 50–950 ramp

primary
#2A5515
secondary
#71398D
accent
#44E4AF
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060B03
muted
#7A7C78

Preview Lab

Preview with #2A5515

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

Preview Lab → · Contrast checker → · Palette generator →

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