#2B7D23#2B7D23

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

Color values

HEX#2B7D23
RGBrgb(43, 125, 35)
HSLhsl(115, 56%, 31%)
HSVhsv(115, 72%, 49%)
CMYKcmyk(65.6%, 0%, 72%, 51%)
CIE-LABlab(46.04, -42.68, 40.00)
CIE-LCHlch(46.04, 58.49, 136.85°)
OKLaboklab(52.07% -0.1164 0.0914)
OKLCHoklch(52.07% 0.148 141.8)
XYZxyz(8.6328, 15.3013, 4.0883)
Luminance0.1530 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7D23 #75237D
analogous
#587D23 #2B7D23 #237D48
triadic
#2B7D23 #232B7D #7D232B
tetradic
#2B7D23 #23587D #75237D #7D4823
square
#2B7D23 #23587D #75237D #7D4823
split-complementary
#2B7D23 #48237D #7D2358
monochromatic
#0A1D08 #1B4D16 #2B7D23 #3BAD30 #59CD4D

Accessibility & contrast

On white

5.17
#2B7D23 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#2B7D23 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B7D23
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B7D23#FFFFFF#000000##FFFFFF
##2B7D231.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807115
Deuteranopia (green-blind)
#766A2C
Tritanopia (blue-blind)
#1C796B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2b7d23;
/* rgb */ color: rgb(43, 125, 35);
/* oklch */ color: oklch(52.1% 0.148 141.8);
Tailwind
colors: {
  custom: {
    50: '#70a363',
    500: '#2b7d23',
    950: '#000000',
  },
}
SCSS
$custom: #2b7d23;
$custom-light: #70a363;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7d23",
  "rgb": {
    "r": 43,
    "g": 125,
    "b": 35
  },
  "hsl": {
    "h": 114.667,
    "s": 56.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.52074,
    "c": 0.14797,
    "h": 141.8
  },
  "luminance": 0.15302
}

Semantic roles & 50–950 ramp

primary
#2B7D23
secondary
#A74CAF
accent
#48E0D2
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F05
muted
#7B7F7A

Preview Lab

Preview with #2B7D23

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

Preview Lab → · Contrast checker → · Palette generator →

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