#2A7824#2A7824

#2A7824 is a mid, vivid green. Relative luminance 0.141; OKLCH L 50.6% C 0.141 H 142.1°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#2A7824
RGBrgb(42, 120, 36)
HSLhsl(116, 54%, 31%)
HSVhsv(116, 70%, 47%)
CMYKcmyk(65%, 0%, 70%, 52.9%)
CIE-LABlab(44.31, -40.92, 37.71)
CIE-LCHlch(44.31, 55.65, 137.33°)
OKLaboklab(50.63% -0.1115 0.0867)
OKLCHoklch(50.63% 0.141 142.1)
XYZxyz(7.9893, 14.0518, 3.9600)
Luminance0.1405 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7824 #722478
analogous
#547824 #2A7824 #247848
triadic
#2A7824 #242A78 #78242A
tetradic
#2A7824 #245478 #722478 #784824
square
#2A7824 #245478 #722478 #784824
split-complementary
#2A7824 #482478 #782454
monochromatic
#091A08 #1A4916 #2A7824 #3AA732 #56CA4D

Accessibility & contrast

On white

5.51
#2A7824 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#2A7824 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7824
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7824#FFFFFF#000000##FFFFFF
##2A78241.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6D19
Deuteranopia (green-blind)
#71662C
Tritanopia (blue-blind)
#1C7467
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #2a7824;
/* rgb */ color: rgb(42, 120, 36);
/* oklch */ color: oklch(50.6% 0.141 142.1);
Tailwind
colors: {
  custom: {
    50: '#6ea063',
    500: '#2a7824',
    950: '#000000',
  },
}
SCSS
$custom: #2a7824;
$custom-light: #6ea063;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7824",
  "rgb": {
    "r": 42,
    "g": 120,
    "b": 36
  },
  "hsl": {
    "h": 115.714,
    "s": 53.846,
    "l": 30.588
  },
  "oklch": {
    "l": 0.50632,
    "c": 0.14125,
    "h": 142.1
  },
  "luminance": 0.14053
}

Semantic roles & 50–950 ramp

primary
#2A7824
secondary
#A44DAB
accent
#4BDDD3
background
#F7F9F6
surface
#EDF2EB
border
#C8CCC6
text
#080F05
muted
#7B7E7A

Preview Lab

Preview with #2A7824

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

Preview Lab → · Contrast checker → · Palette generator →

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