#2A7528#2A7528

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

Color values

HEX#2A7528
RGBrgb(42, 117, 40)
HSLhsl(118, 49%, 31%)
HSVhsv(118, 66%, 46%)
CMYKcmyk(64.1%, 0%, 65.8%, 54.1%)
CIE-LABlab(43.31, -39.32, 34.78)
CIE-LCHlch(43.31, 52.50, 138.50°)
OKLaboklab(49.82% -0.1069 0.081)
OKLCHoklch(49.82% 0.134 142.8)
XYZxyz(7.6987, 13.3673, 4.1815)
Luminance0.1337 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7528 #732875
analogous
#507528 #2A7528 #28754C
triadic
#2A7528 #282A75 #75282A
tetradic
#2A7528 #285075 #732875 #754C28
square
#2A7528 #285075 #732875 #754C28
split-complementary
#2A7528 #4C2875 #752850
monochromatic
#091A09 #1A4718 #2A7528 #3AA338 #56C453

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A7528#FFFFFF#000000##FFFFFF
##2A75281.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)
#786A1F
Deuteranopia (green-blind)
#6E642F
Tritanopia (blue-blind)
#1C7265
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #2a7528;
/* rgb */ color: rgb(42, 117, 40);
/* oklch */ color: oklch(49.8% 0.134 142.8);
Tailwind
colors: {
  custom: {
    50: '#6d9d65',
    500: '#2a7528',
    950: '#000000',
  },
}
SCSS
$custom: #2a7528;
$custom-light: #6d9d65;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7528",
  "rgb": {
    "r": 42,
    "g": 117,
    "b": 40
  },
  "hsl": {
    "h": 118.442,
    "s": 49.045,
    "l": 30.784
  },
  "oklch": {
    "l": 0.49822,
    "c": 0.13414,
    "h": 142.8
  },
  "luminance": 0.13368
}

Semantic roles & 50–950 ramp

primary
#2A7528
secondary
#A552A7
accent
#4FD9D5
background
#F6F9F6
surface
#ECF2EB
border
#C7CCC6
text
#080E06
muted
#7B7E7A

Preview Lab

Preview with #2A7528

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

Preview Lab → · Contrast checker → · Palette generator →

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