#2A7828#2A7828

#2A7828 is a mid, vivid green. Relative luminance 0.141; OKLCH L 50.7% C 0.138 H 142.8°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#2A7828
RGBrgb(42, 120, 40)
HSLhsl(119, 50%, 31%)
HSVhsv(119, 67%, 47%)
CMYKcmyk(65%, 0%, 66.7%, 52.9%)
CIE-LABlab(44.34, -40.49, 35.93)
CIE-LCHlch(44.34, 54.14, 138.41°)
OKLaboklab(50.67% -0.1101 0.0835)
OKLCHoklch(50.67% 0.138 142.8)
XYZxyz(8.0539, 14.0776, 4.2999)
Luminance0.1408 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7828 #762878
analogous
#527828 #2A7828 #28784E
triadic
#2A7828 #282A78 #78282A
tetradic
#2A7828 #285278 #762878 #784E28
square
#2A7828 #285278 #762878 #784E28
split-complementary
#2A7828 #4E2878 #782852
monochromatic
#0A1C09 #1A4A19 #2A7828 #3AA637 #57C654

Accessibility & contrast

On white

5.50
#2A7828 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#2A7828 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7828
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7828#FFFFFF#000000##FFFFFF
##2A78281.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6D1E
Deuteranopia (green-blind)
#71662F
Tritanopia (blue-blind)
#1B7467
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #2a7828;
/* rgb */ color: rgb(42, 120, 40);
/* oklch */ color: oklch(50.7% 0.138 142.8);
Tailwind
colors: {
  custom: {
    50: '#6ea066',
    500: '#2a7828',
    950: '#000000',
  },
}
SCSS
$custom: #2a7828;
$custom-light: #6ea066;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7828",
  "rgb": {
    "r": 42,
    "g": 120,
    "b": 40
  },
  "hsl": {
    "h": 118.5,
    "s": 50,
    "l": 31.373
  },
  "oklch": {
    "l": 0.50674,
    "c": 0.13815,
    "h": 142.8
  },
  "luminance": 0.14078
}

Semantic roles & 50–950 ramp

primary
#2A7828
secondary
#A852AA
accent
#4EDAD6
background
#F7F9F6
surface
#EDF2EB
border
#C8CCC6
text
#080F06
muted
#7B7E7A

Preview Lab

Preview with #2A7828

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

Preview Lab → · Contrast checker → · Palette generator →

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