#2A5D15#2A5D15

#2A5D15 is a dark, moderate green. Relative luminance 0.084; OKLCH L 42.7% C 0.116 H 138.3°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#2A5D15
RGBrgb(42, 93, 21)
HSLhsl(103, 63%, 22%)
HSVhsv(103, 77%, 36%)
CMYKcmyk(54.8%, 0%, 77.4%, 63.5%)
CIE-LABlab(34.75, -31.35, 34.19)
CIE-LCHlch(34.75, 46.39, 132.52°)
OKLaboklab(42.71% -0.0866 0.0773)
OKLCHoklch(42.71% 0.116 138.3)
XYZxyz(5.0044, 8.3747, 2.0621)
Luminance0.0838 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5D15 #48155D
analogous
#4E5D15 #2A5D15 #155D24
triadic
#2A5D15 #152A5D #5D152A
tetradic
#2A5D15 #154E5D #48155D #5D2415
square
#2A5D15 #154E5D #48155D #5D2415
split-complementary
#2A5D15 #24155D #5D154E
monochromatic
#0B1906 #132B0A #2A5D15 #418F20 #57C12C

Accessibility & contrast

On white

7.85
#2A5D15 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#2A5D15 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5D15
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5D15#FFFFFF#000000##FFFFFF
##2A5D151.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#605408
Deuteranopia (green-blind)
#59501C
Tritanopia (blue-blind)
#265A4F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2a5d15;
/* rgb */ color: rgb(42, 93, 21);
/* oklch */ color: oklch(42.7% 0.116 138.3);
Tailwind
colors: {
  custom: {
    50: '#6a8b58',
    500: '#2a5d15',
    950: '#000000',
  },
}
SCSS
$custom: #2a5d15;
$custom-light: #6a8b58;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5d15",
  "rgb": {
    "r": 42,
    "g": 93,
    "b": 21
  },
  "hsl": {
    "h": 102.5,
    "s": 63.158,
    "l": 22.353
  },
  "oklch": {
    "l": 0.42708,
    "c": 0.11605,
    "h": 138.3
  },
  "luminance": 0.08375
}

Semantic roles & 50–950 ramp

primary
#2A5D15
secondary
#7A3994
accent
#42E6B6
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2A5D15

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

Preview Lab → · Contrast checker → · Palette generator →

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