#2A7E52#2A7E52

#2A7E52 is a mid, moderate green. Relative luminance 0.160; OKLCH L 53.1% C 0.107 H 156.6°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#2A7E52
RGBrgb(42, 126, 82)
HSLhsl(149, 50%, 33%)
HSVhsv(149, 67%, 49%)
CMYKcmyk(66.7%, 0%, 34.9%, 50.6%)
CIE-LABlab(47.00, -36.01, 16.77)
CIE-LCHlch(47.00, 39.73, 155.04°)
OKLaboklab(53.07% -0.0978 0.0423)
OKLCHoklch(53.07% 0.107 156.6)
XYZxyz(9.9378, 16.0221, 10.5499)
Luminance0.1602 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7E52 #7E2A56
analogous
#2C7E2A #2A7E52 #2A7E7C
triadic
#2A7E52 #522A7E #7E522A
tetradic
#2A7E52 #2A2C7E #7E2A56 #7E7C2A
square
#2A7E52 #2A2C7E #7E2A56 #7E7C2A
split-complementary
#2A7E52 #7C2A7E #7E2A2C
monochromatic
#0B2216 #1B5034 #2A7E52 #39AC70 #5AC88F

Accessibility & contrast

On white

4.99
#2A7E52 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#2A7E52 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7E52
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7E52#FFFFFF#000000##FFFFFF
##2A7E521.004.994.204.99
#FFFFFF4.991.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D744F
Deuteranopia (green-blind)
#726C55
Tritanopia (blue-blind)
#007D73
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2a7e52;
/* rgb */ color: rgb(42, 126, 82);
/* oklch */ color: oklch(53.1% 0.107 156.6);
Tailwind
colors: {
  custom: {
    50: '#6ea483',
    500: '#2a7e52',
    950: '#000000',
  },
}
SCSS
$custom: #2a7e52;
$custom-light: #6ea483;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7e52",
  "rgb": {
    "r": 42,
    "g": 126,
    "b": 82
  },
  "hsl": {
    "h": 148.571,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.53068,
    "c": 0.10654,
    "h": 156.6
  },
  "luminance": 0.16023
}

Semantic roles & 50–950 ramp

primary
#2A7E52
secondary
#AE5684
accent
#4E97DA
background
#F6FAF8
surface
#ECF4EF
border
#C7CECA
text
#080F0A
muted
#7A7F7C

Preview Lab

Preview with #2A7E52

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

Preview Lab → · Contrast checker → · Palette generator →

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