#2A5E17#2A5E17

#2A5E17 is a dark, moderate green. Relative luminance 0.086; OKLCH L 43.0% C 0.116 H 138.7°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#2A5E17
RGBrgb(42, 94, 23)
HSLhsl(104, 61%, 23%)
HSVhsv(104, 76%, 37%)
CMYKcmyk(55.3%, 0%, 75.5%, 63.1%)
CIE-LABlab(35.12, -31.61, 33.72)
CIE-LCHlch(35.12, 46.22, 133.15°)
OKLaboklab(43.02% -0.0871 0.0766)
OKLCHoklch(43.02% 0.116 138.7)
XYZxyz(5.1120, 8.5591, 2.1931)
Luminance0.0856 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5E17 #4B175E
analogous
#4D5E17 #2A5E17 #175E28
triadic
#2A5E17 #172A5E #5E172A
tetradic
#2A5E17 #174D5E #4B175E #5E2817
square
#2A5E17 #174D5E #4B175E #5E2817
split-complementary
#2A5E17 #28175E #5E174D
monochromatic
#0B1906 #142D0B #2A5E17 #408F23 #56C02F

Accessibility & contrast

On white

7.74
#2A5E17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#2A5E17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5E17
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5E17#FFFFFF#000000##FFFFFF
##2A5E171.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#61550C
Deuteranopia (green-blind)
#5A511E
Tritanopia (blue-blind)
#265B50
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2a5e17;
/* rgb */ color: rgb(42, 94, 23);
/* oklch */ color: oklch(43.0% 0.116 138.7);
Tailwind
colors: {
  custom: {
    50: '#6a8c59',
    500: '#2a5e17',
    950: '#000000',
  },
}
SCSS
$custom: #2a5e17;
$custom-light: #6a8c59;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5e17",
  "rgb": {
    "r": 42,
    "g": 94,
    "b": 23
  },
  "hsl": {
    "h": 103.944,
    "s": 60.684,
    "l": 22.941
  },
  "oklch": {
    "l": 0.43017,
    "c": 0.11601,
    "h": 138.7
  },
  "luminance": 0.0856
}

Semantic roles & 50–950 ramp

primary
#2A5E17
secondary
#7D3C95
accent
#44E4B9
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070C04
muted
#7A7D79

Preview Lab

Preview with #2A5E17

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

Preview Lab → · Contrast checker → · Palette generator →

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