#2A5B17#2A5B17

#2A5B17 is a dark, moderate green. Relative luminance 0.080; OKLCH L 42.1% C 0.112 H 138.4°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#2A5B17
RGBrgb(42, 91, 23)
HSLhsl(103, 60%, 22%)
HSVhsv(103, 75%, 36%)
CMYKcmyk(53.8%, 0%, 74.7%, 64.3%)
CIE-LABlab(34.06, -30.31, 32.62)
CIE-LCHlch(34.06, 44.53, 132.89°)
OKLaboklab(42.14% -0.0836 0.0743)
OKLCHoklch(42.14% 0.112 138.4)
XYZxyz(4.8504, 8.0359, 2.1059)
Luminance0.0804 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5B17 #48175B
analogous
#4C5B17 #2A5B17 #175B26
triadic
#2A5B17 #172A5B #5B172A
tetradic
#2A5B17 #174C5B #48175B #5B2617
square
#2A5B17 #174C5B #48175B #5B2617
split-complementary
#2A5B17 #26175B #5B174C
monochromatic
#0B1806 #132A0B #2A5B17 #418C23 #57BD30

Accessibility & contrast

On white

8.05
#2A5B17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#2A5B17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5B17
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5B17#FFFFFF#000000##FFFFFF
##2A5B171.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E530D
Deuteranopia (green-blind)
#584F1D
Tritanopia (blue-blind)
#26584D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2a5b17;
/* rgb */ color: rgb(42, 91, 23);
/* oklch */ color: oklch(42.1% 0.112 138.4);
Tailwind
colors: {
  custom: {
    50: '#698a58',
    500: '#2a5b17',
    950: '#000000',
  },
}
SCSS
$custom: #2a5b17;
$custom-light: #698a58;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5b17",
  "rgb": {
    "r": 42,
    "g": 91,
    "b": 23
  },
  "hsl": {
    "h": 103.235,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.42142,
    "c": 0.11184,
    "h": 138.4
  },
  "luminance": 0.08036
}

Semantic roles & 50–950 ramp

primary
#2A5B17
secondary
#7A3C92
accent
#45E3B7
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2A5B17

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

Preview Lab → · Contrast checker → · Palette generator →

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