#2A7F33#2A7F33

#2A7F33 is a mid, vivid green. Relative luminance 0.159; OKLCH L 52.8% C 0.138 H 145.0°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#2A7F33
RGBrgb(42, 127, 51)
HSLhsl(126, 50%, 33%)
HSVhsv(126, 67%, 50%)
CMYKcmyk(66.9%, 0%, 59.8%, 50.2%)
CIE-LABlab(46.85, -41.84, 33.46)
CIE-LCHlch(46.85, 53.58, 141.35°)
OKLaboklab(52.79% -0.1132 0.0792)
OKLCHoklch(52.79% 0.138 145)
XYZxyz(9.1412, 15.9091, 5.7203)
Luminance0.1591 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7F33 #7F2A76
analogous
#4B7F2A #2A7F33 #2A7F5D
triadic
#2A7F33 #332A7F #7F332A
tetradic
#2A7F33 #2A4B7F #7F2A76 #7F5D2A
square
#2A7F33 #2A4B7F #7F2A76 #7F5D2A
split-complementary
#2A7F33 #5D2A7F #7F2A4B
monochromatic
#0C230E #1B5121 #2A7F33 #39AD45 #5BC966

Accessibility & contrast

On white

5.02
#2A7F33 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#2A7F33 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7F33
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7F33#FFFFFF#000000##FFFFFF
##2A7F331.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#81732B
Deuteranopia (green-blind)
#776C39
Tritanopia (blue-blind)
#147C6E
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2a7f33;
/* rgb */ color: rgb(42, 127, 51);
/* oklch */ color: oklch(52.8% 0.138 145.0);
Tailwind
colors: {
  custom: {
    50: '#6fa56d',
    500: '#2a7f33',
    950: '#000000',
  },
}
SCSS
$custom: #2a7f33;
$custom-light: #6fa56d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7f33",
  "rgb": {
    "r": 42,
    "g": 127,
    "b": 51
  },
  "hsl": {
    "h": 126.353,
    "s": 50.296,
    "l": 33.137
  },
  "oklch": {
    "l": 0.52787,
    "c": 0.13819,
    "h": 145
  },
  "luminance": 0.1591
}

Semantic roles & 50–950 ramp

primary
#2A7F33
secondary
#AE57A5
accent
#4ECBDA
background
#F7FAF6
surface
#EDF4EC
border
#C8CEC7
text
#080F07
muted
#7B7F7A

Preview Lab

Preview with #2A7F33

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

Preview Lab → · Contrast checker → · Palette generator →

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