#2A5A15#2A5A15

#2A5A15 is a dark, moderate green. Relative luminance 0.079; OKLCH L 41.8% C 0.112 H 137.9°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#2A5A15
RGBrgb(42, 90, 21)
HSLhsl(102, 62%, 22%)
HSVhsv(102, 77%, 35%)
CMYKcmyk(53.3%, 0%, 76.7%, 64.7%)
CIE-LABlab(33.69, -30.04, 33.11)
CIE-LCHlch(33.69, 44.71, 132.22°)
OKLaboklab(41.83% -0.083 0.075)
OKLCHoklch(41.83% 0.112 137.9)
XYZxyz(4.7462, 7.8584, 1.9760)
Luminance0.0786 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5A15 #45155A
analogous
#4D5A15 #2A5A15 #155A23
triadic
#2A5A15 #152A5A #5A152A
tetradic
#2A5A15 #154D5A #45155A #5A2315
square
#2A5A15 #154D5A #45155A #5A2315
split-complementary
#2A5A15 #23155A #5A154D
monochromatic
#0C1906 #132809 #2A5A15 #418C21 #58BD2C

Accessibility & contrast

On white

8.17
#2A5A15 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#2A5A15 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5A15
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5A15#FFFFFF#000000##FFFFFF
##2A5A151.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D5209
Deuteranopia (green-blind)
#574E1C
Tritanopia (blue-blind)
#27574C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2a5a15;
/* rgb */ color: rgb(42, 90, 21);
/* oklch */ color: oklch(41.8% 0.112 137.9);
Tailwind
colors: {
  custom: {
    50: '#698957',
    500: '#2a5a15',
    950: '#000000',
  },
}
SCSS
$custom: #2a5a15;
$custom-light: #698957;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5a15",
  "rgb": {
    "r": 42,
    "g": 90,
    "b": 21
  },
  "hsl": {
    "h": 101.739,
    "s": 62.162,
    "l": 21.765
  },
  "oklch": {
    "l": 0.41832,
    "c": 0.1119,
    "h": 137.9
  },
  "luminance": 0.07859
}

Semantic roles & 50–950 ramp

primary
#2A5A15
secondary
#773992
accent
#43E5B4
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2A5A15

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

Preview Lab → · Contrast checker → · Palette generator →

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