#2D851B#2D851B

#2D851B is a mid, vivid green. Relative luminance 0.174; OKLCH L 54.3% C 0.162 H 140.8°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#2D851B
RGBrgb(45, 133, 27)
HSLhsl(110, 66%, 31%)
HSVhsv(110, 80%, 52%)
CMYKcmyk(66.2%, 0%, 79.7%, 47.8%)
CIE-LABlab(48.77, -45.80, 45.82)
CIE-LCHlch(48.77, 64.79, 134.99°)
OKLaboklab(54.33% -0.1254 0.1024)
OKLCHoklch(54.33% 0.162 140.8)
XYZxyz(9.6671, 17.4111, 3.8879)
Luminance0.1741 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D851B #731B85
analogous
#62851B #2D851B #1B853E
triadic
#2D851B #1B2D85 #851B2D
tetradic
#2D851B #1B6285 #731B85 #853E1B
square
#2D851B #1B6285 #731B85 #853E1B
split-complementary
#2D851B #3E1B85 #851B62
monochromatic
#0B1F06 #1C5211 #2D851B #3EB825 #5BD942

Accessibility & contrast

On white

4.68
#2D851B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#2D851B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D851B
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D851B#FFFFFF#000000##FFFFFF
##2D851B1.004.684.484.68
#FFFFFF4.681.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#897800
Deuteranopia (green-blind)
#7E7127
Tritanopia (blue-blind)
#1E8171
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #2d851b;
/* rgb */ color: rgb(45, 133, 27);
/* oklch */ color: oklch(54.3% 0.162 140.8);
Tailwind
colors: {
  custom: {
    50: '#73a960',
    500: '#2d851b',
    950: '#000000',
  },
}
SCSS
$custom: #2d851b;
$custom-light: #73a960;
$custom-dark: #000000;
JSON
{
  "hex": "#2d851b",
  "rgb": {
    "r": 45,
    "g": 133,
    "b": 27
  },
  "hsl": {
    "h": 109.811,
    "s": 66.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.54333,
    "c": 0.1619,
    "h": 140.8
  },
  "luminance": 0.17412
}

Semantic roles & 50–950 ramp

primary
#2D851B
secondary
#A444B8
accent
#3FE9CC
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#091005
muted
#7B7F79

Preview Lab

Preview with #2D851B

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

Preview Lab → · Contrast checker → · Palette generator →

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