#2A7230#2A7230

#2A7230 is a mid, vivid green. Relative luminance 0.127; OKLCH L 49.1% C 0.123 H 144.8°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#2A7230
RGBrgb(42, 114, 48)
HSLhsl(125, 46%, 31%)
HSVhsv(125, 63%, 45%)
CMYKcmyk(63.2%, 0%, 57.9%, 55.3%)
CIE-LABlab(42.37, -37.08, 29.69)
CIE-LCHlch(42.37, 47.50, 141.31°)
OKLaboklab(49.07% -0.1005 0.0708)
OKLCHoklch(49.07% 0.123 144.8)
XYZxyz(7.5052, 12.7396, 4.8592)
Luminance0.1274 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7230 #722A6C
analogous
#48722A #2A7230 #2A7254
triadic
#2A7230 #302A72 #72302A
tetradic
#2A7230 #2A4872 #722A6C #72542A
square
#2A7230 #2A4872 #722A6C #72542A
split-complementary
#2A7230 #542A72 #722A48
monochromatic
#09190A #1A451D #2A7230 #3A9F43 #56C15F

Accessibility & contrast

On white

5.92
#2A7230 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#2A7230 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7230
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7230#FFFFFF#000000##FFFFFF
##2A72301.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#74682A
Deuteranopia (green-blind)
#6B6235
Tritanopia (blue-blind)
#1B6F63
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2a7230;
/* rgb */ color: rgb(42, 114, 48);
/* oklch */ color: oklch(49.1% 0.123 144.8);
Tailwind
colors: {
  custom: {
    50: '#6c9b6a',
    500: '#2a7230',
    950: '#000000',
  },
}
SCSS
$custom: #2a7230;
$custom-light: #6c9b6a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7230",
  "rgb": {
    "r": 42,
    "g": 114,
    "b": 48
  },
  "hsl": {
    "h": 125,
    "s": 46.154,
    "l": 30.588
  },
  "oklch": {
    "l": 0.49072,
    "c": 0.12289,
    "h": 144.8
  },
  "luminance": 0.1274
}

Semantic roles & 50–950 ramp

primary
#2A7230
secondary
#A4549D
accent
#52CBD6
background
#F6F9F6
surface
#ECF2EB
border
#C7CCC6
text
#070E06
muted
#7A7E7A

Preview Lab

Preview with #2A7230

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

Preview Lab → · Contrast checker → · Palette generator →

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