#2A7526#2A7526

#2A7526 is a mid, vivid green. Relative luminance 0.134; OKLCH L 49.8% C 0.136 H 142.4°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#2A7526
RGBrgb(42, 117, 38)
HSLhsl(117, 51%, 30%)
HSVhsv(117, 68%, 46%)
CMYKcmyk(64.1%, 0%, 67.5%, 54.1%)
CIE-LABlab(43.29, -39.54, 35.70)
CIE-LCHlch(43.29, 53.28, 137.92°)
OKLaboklab(49.8% -0.1076 0.0827)
OKLCHoklch(49.8% 0.136 142.4)
XYZxyz(7.6656, 13.3540, 4.0070)
Luminance0.1336 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7526 #712675
analogous
#517526 #2A7526 #267549
triadic
#2A7526 #262A75 #75262A
tetradic
#2A7526 #265175 #712675 #754926
square
#2A7526 #265175 #712675 #754926
split-complementary
#2A7526 #492675 #752651
monochromatic
#091908 #194717 #2A7526 #3BA335 #55C64F

Accessibility & contrast

On white

5.72
#2A7526 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#2A7526 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7526
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7526#FFFFFF#000000##FFFFFF
##2A75261.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786A1C
Deuteranopia (green-blind)
#6E642D
Tritanopia (blue-blind)
#1D7165
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #2a7526;
/* rgb */ color: rgb(42, 117, 38);
/* oklch */ color: oklch(49.8% 0.136 142.4);
Tailwind
colors: {
  custom: {
    50: '#6d9d64',
    500: '#2a7526',
    950: '#000000',
  },
}
SCSS
$custom: #2a7526;
$custom-light: #6d9d64;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7526",
  "rgb": {
    "r": 42,
    "g": 117,
    "b": 38
  },
  "hsl": {
    "h": 116.962,
    "s": 50.968,
    "l": 30.392
  },
  "oklch": {
    "l": 0.49799,
    "c": 0.13576,
    "h": 142.4
  },
  "luminance": 0.13355
}

Semantic roles & 50–950 ramp

primary
#2A7526
secondary
#A34FA7
accent
#4DDAD3
background
#F6F9F6
surface
#ECF2EB
border
#C7CCC6
text
#080E06
muted
#7B7E7A

Preview Lab

Preview with #2A7526

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

Preview Lab → · Contrast checker → · Palette generator →

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