#2D821B#2D821B

#2D821B is a mid, vivid green. Relative luminance 0.166; OKLCH L 53.5% C 0.158 H 140.7°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#2D821B
RGBrgb(45, 130, 27)
HSLhsl(110, 66%, 31%)
HSVhsv(110, 79%, 51%)
CMYKcmyk(65.4%, 0%, 79.2%, 49%)
CIE-LABlab(47.75, -44.71, 44.83)
CIE-LCHlch(47.75, 63.32, 134.92°)
OKLaboklab(53.49% -0.1224 0.1004)
OKLCHoklch(53.49% 0.158 140.7)
XYZxyz(9.2622, 16.6014, 3.7530)
Luminance0.1660 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D821B #701B82
analogous
#60821B #2D821B #1B823D
triadic
#2D821B #1B2D82 #821B2D
tetradic
#2D821B #1B6082 #701B82 #823D1B
square
#2D821B #1B6082 #701B82 #823D1B
split-complementary
#2D821B #3D1B82 #821B60
monochromatic
#0A1D06 #1B4F10 #2D821B #3FB526 #5AD740

Accessibility & contrast

On white

4.86
#2D821B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#2D821B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D821B
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D821B#FFFFFF#000000##FFFFFF
##2D821B1.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867602
Deuteranopia (green-blind)
#7B6F27
Tritanopia (blue-blind)
#1F7E6F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #2d821b;
/* rgb */ color: rgb(45, 130, 27);
/* oklch */ color: oklch(53.5% 0.158 140.7);
Tailwind
colors: {
  custom: {
    50: '#72a760',
    500: '#2d821b',
    950: '#000000',
  },
}
SCSS
$custom: #2d821b;
$custom-light: #72a760;
$custom-dark: #000000;
JSON
{
  "hex": "#2d821b",
  "rgb": {
    "r": 45,
    "g": 130,
    "b": 27
  },
  "hsl": {
    "h": 109.515,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.53488,
    "c": 0.15832,
    "h": 140.7
  },
  "luminance": 0.16602
}

Semantic roles & 50–950 ramp

primary
#2D821B
secondary
#A243B6
accent
#3FE9CB
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #2D821B

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

Preview Lab → · Contrast checker → · Palette generator →

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