#2A9840#2A9840

#2A9840 is a mid, vivid green. Relative luminance 0.233; OKLCH L 59.9% C 0.160 H 146.5°. Best body text is #000000 at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#2A9840
RGBrgb(42, 152, 64)
HSLhsl(132, 57%, 38%)
HSVhsv(132, 72%, 60%)
CMYKcmyk(72.4%, 0%, 57.9%, 40.4%)
CIE-LABlab(55.40, -49.42, 37.09)
CIE-LCHlch(55.40, 61.79, 143.11°)
OKLaboklab(59.9% -0.1332 0.0882)
OKLCHoklch(59.9% 0.16 146.5)
XYZxyz(13.1076, 23.3174, 8.6594)
Luminance0.2332 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A9840 #982A82
analogous
#4B982A #2A9840 #2A9877
triadic
#2A9840 #402A98 #98402A
tetradic
#2A9840 #2A4B98 #982A82 #98772A
square
#2A9840 #2A4B98 #982A82 #98772A
split-complementary
#2A9840 #772A98 #982A4B
monochromatic
#103818 #1D682C #2A9840 #37C854 #67D57D

Accessibility & contrast

On white

3.71
#2A9840 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.66
#2A9840 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A9840
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A9840#FFFFFF#000000##000000
##2A98401.003.715.665.66
#FFFFFF3.711.0021.0021.00
#0000005.6621.001.001.00
##0000005.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8A37
Deuteranopia (green-blind)
#8D8147
Tritanopia (blue-blind)
#009485
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #2a9840;
/* rgb */ color: rgb(42, 152, 64);
/* oklch */ color: oklch(59.9% 0.160 146.5);
Tailwind
colors: {
  custom: {
    50: '#74b777',
    500: '#2a9840',
    950: '#000000',
  },
}
SCSS
$custom: #2a9840;
$custom-light: #74b777;
$custom-dark: #000000;
JSON
{
  "hex": "#2a9840",
  "rgb": {
    "r": 42,
    "g": 152,
    "b": 64
  },
  "hsl": {
    "h": 132,
    "s": 56.701,
    "l": 38.039
  },
  "oklch": {
    "l": 0.59901,
    "c": 0.15979,
    "h": 146.5
  },
  "luminance": 0.23319
}

Semantic roles & 50–950 ramp

primary
#2A9840
secondary
#BB62AA
accent
#48C2E0
background
#F7FBF7
surface
#EEF6ED
border
#C9D0C8
text
#091109
muted
#7B807B

Preview Lab

Preview with #2A9840

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

Preview Lab → · Contrast checker → · Palette generator →

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