#2B7D2A#2B7D2A

#2B7D2A is a mid, vivid green. Relative luminance 0.153; OKLCH L 52.1% C 0.143 H 143.0°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#2B7D2A
RGBrgb(43, 125, 42)
HSLhsl(119, 50%, 33%)
HSVhsv(119, 66%, 49%)
CMYKcmyk(65.6%, 0%, 66.4%, 51%)
CIE-LABlab(46.11, -41.95, 36.96)
CIE-LCHlch(46.11, 55.92, 138.62°)
OKLaboklab(52.15% -0.114 0.0859)
OKLCHoklch(52.15% 0.143 143)
XYZxyz(8.7473, 15.3471, 4.6914)
Luminance0.1535 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7D2A #7C2A7D
analogous
#547D2A #2B7D2A #2A7D52
triadic
#2B7D2A #2A2B7D #7D2A2B
tetradic
#2B7D2A #2A547D #7C2A7D #7D522A
square
#2B7D2A #2A547D #7C2A7D #7D522A
split-complementary
#2B7D2A #522A7D #7D2A54
monochromatic
#0B210B #1B4F1B #2B7D2A #3BAB39 #5BC85A

Accessibility & contrast

On white

5.16
#2B7D2A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#2B7D2A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B7D2A
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B7D2A#FFFFFF#000000##FFFFFF
##2B7D2A1.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807120
Deuteranopia (green-blind)
#766B31
Tritanopia (blue-blind)
#1A796C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2b7d2a;
/* rgb */ color: rgb(43, 125, 42);
/* oklch */ color: oklch(52.1% 0.143 143.0);
Tailwind
colors: {
  custom: {
    50: '#6fa367',
    500: '#2b7d2a',
    950: '#000000',
  },
}
SCSS
$custom: #2b7d2a;
$custom-light: #6fa367;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7d2a",
  "rgb": {
    "r": 43,
    "g": 125,
    "b": 42
  },
  "hsl": {
    "h": 119.277,
    "s": 49.701,
    "l": 32.745
  },
  "oklch": {
    "l": 0.52145,
    "c": 0.14272,
    "h": 143
  },
  "luminance": 0.15348
}

Semantic roles & 50–950 ramp

primary
#2B7D2A
secondary
#AC56AD
accent
#4FD9D8
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2B7D2A

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

Preview Lab → · Contrast checker → · Palette generator →

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