#2A5017#2A5017

#2A5017 is a dark, moderate green. Relative luminance 0.063; OKLCH L 38.9% C 0.096 H 136.9°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#2A5017
RGBrgb(42, 80, 23)
HSLhsl(100, 55%, 20%)
HSVhsv(100, 71%, 31%)
CMYKcmyk(47.5%, 0%, 71.2%, 68.6%)
CIE-LABlab(30.14, -25.26, 28.45)
CIE-LCHlch(30.14, 38.05, 131.60°)
OKLaboklab(38.92% -0.0699 0.0655)
OKLCHoklch(38.92% 0.096 136.9)
XYZxyz(3.9780, 6.2912, 1.8152)
Luminance0.0629 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5017 #3D1750
analogous
#465017 #2A5017 #175020
triadic
#2A5017 #172A50 #50172A
tetradic
#2A5017 #174650 #3D1750 #502017
square
#2A5017 #174650 #3D1750 #502017
split-complementary
#2A5017 #201750 #501746
monochromatic
#0C1807 #112009 #2A5017 #438025 #5CAF32

Accessibility & contrast

On white

9.30
#2A5017 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#2A5017 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5017
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5017#FFFFFF#000000##FFFFFF
##2A50171.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534910
Deuteranopia (green-blind)
#4E461C
Tritanopia (blue-blind)
#284D44
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2a5017;
/* rgb */ color: rgb(42, 80, 23);
/* oklch */ color: oklch(38.9% 0.096 136.9);
Tailwind
colors: {
  custom: {
    50: '#678157',
    500: '#2a5017',
    950: '#000000',
  },
}
SCSS
$custom: #2a5017;
$custom-light: #678157;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5017",
  "rgb": {
    "r": 42,
    "g": 80,
    "b": 23
  },
  "hsl": {
    "h": 100,
    "s": 55.34,
    "l": 20.196
  },
  "oklch": {
    "l": 0.38923,
    "c": 0.09583,
    "h": 136.9
  },
  "luminance": 0.06291
}

Semantic roles & 50–950 ramp

primary
#2A5017
secondary
#6E3C87
accent
#49DFAD
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2A5017

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

Preview Lab → · Contrast checker → · Palette generator →

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