#3A9840#3A9840

#3A9840 is a mid, vivid green. Relative luminance 0.237; OKLCH L 60.4% C 0.154 H 144.4°. Best body text is #000000 at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#3A9840
RGBrgb(58, 152, 64)
HSLhsl(124, 45%, 41%)
HSVhsv(124, 62%, 60%)
CMYKcmyk(61.8%, 0%, 57.9%, 40.4%)
CIE-LABlab(55.81, -46.12, 37.68)
CIE-LCHlch(55.81, 59.55, 140.75°)
OKLaboklab(60.36% -0.125 0.0894)
OKLCHoklch(60.36% 0.154 144.4)
XYZxyz(13.8977, 23.7249, 8.6965)
Luminance0.2373 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A9840 #983A92
analogous
#63983A #3A9840 #3A986F
triadic
#3A9840 #403A98 #98403A
tetradic
#3A9840 #3A6398 #983A92 #986F3A
square
#3A9840 #3A6398 #983A92 #986F3A
split-complementary
#3A9840 #6F3A98 #983A63
monochromatic
#183F1B #296C2D #3A9840 #52BD59 #7ECE84

Accessibility & contrast

On white

3.66
#3A9840 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.75
#3A9840 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #3A9840
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A9840#FFFFFF#000000##000000
##3A98401.003.665.755.75
#FFFFFF3.661.0021.0021.00
#0000005.7521.001.001.00
##0000005.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8B37
Deuteranopia (green-blind)
#8F8347
Tritanopia (blue-blind)
#279485
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #3a9840;
/* rgb */ color: rgb(58, 152, 64);
/* oklch */ color: oklch(60.4% 0.154 144.4);
Tailwind
colors: {
  custom: {
    50: '#7bb777',
    500: '#3a9840',
    950: '#000000',
  },
}
SCSS
$custom: #3a9840;
$custom-light: #7bb777;
$custom-dark: #000000;
JSON
{
  "hex": "#3a9840",
  "rgb": {
    "r": 58,
    "g": 152,
    "b": 64
  },
  "hsl": {
    "h": 123.83,
    "s": 44.762,
    "l": 41.176
  },
  "oklch": {
    "l": 0.60361,
    "c": 0.15369,
    "h": 144.4
  },
  "luminance": 0.23726
}

Semantic roles & 50–950 ramp

primary
#3A9840
secondary
#B876B3
accent
#53CCD4
background
#F7FBF7
surface
#EEF6ED
border
#C9D0C8
text
#0A1109
muted
#7C807B

Preview Lab

Preview with #3A9840

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

Preview Lab → · Contrast checker → · Palette generator →

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