#3A7828#3A7828

#3A7828 is a mid, vivid green. Relative luminance 0.145; OKLCH L 51.3% C 0.130 H 139.3°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#3A7828
RGBrgb(58, 120, 40)
HSLhsl(107, 50%, 31%)
HSVhsv(107, 67%, 47%)
CMYKcmyk(51.7%, 0%, 66.7%, 52.9%)
CIE-LABlab(44.92, -36.02, 36.73)
CIE-LCHlch(44.92, 51.44, 134.44°)
OKLaboklab(51.31% -0.099 0.085)
OKLCHoklch(51.31% 0.13 139.3)
XYZxyz(8.8441, 14.4850, 4.3369)
Luminance0.1449 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A7828 #662878
analogous
#627828 #3A7828 #28783E
triadic
#3A7828 #283A78 #78283A
tetradic
#3A7828 #286278 #662878 #783E28
square
#3A7828 #286278 #662878 #783E28
split-complementary
#3A7828 #3E2878 #782862
monochromatic
#0E1C09 #244A19 #3A7828 #50A637 #6EC654

Accessibility & contrast

On white

5.39
#3A7828 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#3A7828 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A7828
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A7828#FFFFFF#000000##FFFFFF
##3A78281.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6E1E
Deuteranopia (green-blind)
#73682F
Tritanopia (blue-blind)
#347467
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #3a7828;
/* rgb */ color: rgb(58, 120, 40);
/* oklch */ color: oklch(51.3% 0.130 139.3);
Tailwind
colors: {
  custom: {
    50: '#769f66',
    500: '#3a7828',
    950: '#000000',
  },
}
SCSS
$custom: #3a7828;
$custom-light: #769f66;
$custom-dark: #000000;
JSON
{
  "hex": "#3a7828",
  "rgb": {
    "r": 58,
    "g": 120,
    "b": 40
  },
  "hsl": {
    "h": 106.5,
    "s": 50,
    "l": 31.373
  },
  "oklch": {
    "l": 0.51311,
    "c": 0.13047,
    "h": 139.3
  },
  "luminance": 0.14486
}

Semantic roles & 50–950 ramp

primary
#3A7828
secondary
#9652AA
accent
#4EDABA
background
#F7F9F6
surface
#EDF2EB
border
#C8CCC6
text
#090E06
muted
#7B7E7A

Preview Lab

Preview with #3A7828

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

Preview Lab → · Contrast checker → · Palette generator →

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