#2D9840#2D9840

#2D9840 is a mid, vivid green. Relative luminance 0.234; OKLCH L 60.0% C 0.159 H 146.2°. Best body text is #000000 at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#2D9840
RGBrgb(45, 152, 64)
HSLhsl(131, 54%, 39%)
HSVhsv(131, 70%, 60%)
CMYKcmyk(70.4%, 0%, 57.9%, 40.4%)
CIE-LABlab(55.46, -48.88, 37.19)
CIE-LCHlch(55.46, 61.42, 142.74°)
OKLaboklab(59.98% -0.1319 0.0884)
OKLCHoklch(59.98% 0.159 146.2)
XYZxyz(13.2349, 23.3831, 8.6654)
Luminance0.2339 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D9840 #982D85
analogous
#4F982D #2D9840 #2D9875
triadic
#2D9840 #402D98 #98402D
tetradic
#2D9840 #2D4F98 #982D85 #98752D
square
#2D9840 #2D4F98 #982D85 #98752D
split-complementary
#2D9840 #752D98 #982D4F
monochromatic
#113A18 #1F692C #2D9840 #3DC555 #6CD37E

Accessibility & contrast

On white

3.70
#2D9840 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.68
#2D9840 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2D9840
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D9840#FFFFFF#000000##000000
##2D98401.003.705.685.68
#FFFFFF3.701.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.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: #2d9840;
/* rgb */ color: rgb(45, 152, 64);
/* oklch */ color: oklch(60.0% 0.159 146.2);
Tailwind
colors: {
  custom: {
    50: '#75b777',
    500: '#2d9840',
    950: '#000000',
  },
}
SCSS
$custom: #2d9840;
$custom-light: #75b777;
$custom-dark: #000000;
JSON
{
  "hex": "#2d9840",
  "rgb": {
    "r": 45,
    "g": 152,
    "b": 64
  },
  "hsl": {
    "h": 130.654,
    "s": 54.315,
    "l": 38.627
  },
  "oklch": {
    "l": 0.59976,
    "c": 0.15877,
    "h": 146.2
  },
  "luminance": 0.23385
}

Semantic roles & 50–950 ramp

primary
#2D9840
secondary
#BA66AC
accent
#4AC3DE
background
#F7FBF7
surface
#EEF6ED
border
#C9D0C8
text
#091109
muted
#7B807B

Preview Lab

Preview with #2D9840

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

Preview Lab → · Contrast checker → · Palette generator →

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