#2A5C17#2A5C17

#2A5C17 is a dark, moderate green. Relative luminance 0.082; OKLCH L 42.4% C 0.113 H 138.5°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#2A5C17
RGBrgb(42, 92, 23)
HSLhsl(103, 60%, 23%)
HSVhsv(103, 75%, 36%)
CMYKcmyk(54.3%, 0%, 75%, 63.9%)
CIE-LABlab(34.41, -30.74, 32.99)
CIE-LCHlch(34.41, 45.09, 132.98°)
OKLaboklab(42.43% -0.0848 0.0751)
OKLCHoklch(42.43% 0.113 138.5)
XYZxyz(4.9365, 8.2080, 2.1346)
Luminance0.0821 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5C17 #49175C
analogous
#4D5C17 #2A5C17 #175C26
triadic
#2A5C17 #172A5C #5C172A
tetradic
#2A5C17 #174D5C #49175C #5C2617
square
#2A5C17 #174D5C #49175C #5C2617
split-complementary
#2A5C17 #26175C #5C174D
monochromatic
#0B1806 #142B0B #2A5C17 #408D23 #57BE2F

Accessibility & contrast

On white

7.95
#2A5C17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#2A5C17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5C17
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5C17#FFFFFF#000000##FFFFFF
##2A5C171.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F540C
Deuteranopia (green-blind)
#584F1D
Tritanopia (blue-blind)
#26594E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2a5c17;
/* rgb */ color: rgb(42, 92, 23);
/* oklch */ color: oklch(42.4% 0.113 138.5);
Tailwind
colors: {
  custom: {
    50: '#698b58',
    500: '#2a5c17',
    950: '#000000',
  },
}
SCSS
$custom: #2a5c17;
$custom-light: #698b58;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5c17",
  "rgb": {
    "r": 42,
    "g": 92,
    "b": 23
  },
  "hsl": {
    "h": 103.478,
    "s": 60,
    "l": 22.549
  },
  "oklch": {
    "l": 0.42434,
    "c": 0.11324,
    "h": 138.5
  },
  "luminance": 0.08208
}

Semantic roles & 50–950 ramp

primary
#2A5C17
secondary
#7B3C93
accent
#45E3B8
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070C04
muted
#7A7D79

Preview Lab

Preview with #2A5C17

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

Preview Lab → · Contrast checker → · Palette generator →

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